mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-07 00:35:53 +01:00
Fixed couple of compilator warning and removed unused macros.
This commit is contained in:
@@ -67,9 +67,6 @@ static unsigned char Cursor_bits[] = {
|
||||
0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0x70
|
||||
};
|
||||
|
||||
/* Cursor shape-mask */
|
||||
#define Cursor_shape_width 32
|
||||
#define Cursor_shape_height 32
|
||||
static unsigned char Cursor_shape_bits[] = {
|
||||
0x00, 0x7e, 0x00, 0x00, 0xc0, 0x81, 0x03, 0x00, 0x20, 0x00, 0x04, 0x00, 0x10, 0x00, 0x08,
|
||||
0x00, 0x08, 0x00, 0x10, 0x00, 0x04, 0x00, 0x20, 0x00, 0x02, 0x00, 0x40, 0x00, 0x02, 0x00,
|
||||
|
||||
@@ -700,7 +700,7 @@ static void typefaceClick(WMWidget * w, void *data)
|
||||
|
||||
WM_ITERATE_ARRAY(face->sizes, size, i) {
|
||||
if (size != NULL) {
|
||||
int size_int = (int) size;
|
||||
int size_int = (intptr_t) size;
|
||||
|
||||
sprintf(buffer, "%i", size_int);
|
||||
|
||||
@@ -802,7 +802,7 @@ static void setFontPanelFontName(FontPanel * panel, const char *family, const ch
|
||||
char buffer[32];
|
||||
|
||||
if (vsize != NULL) {
|
||||
int size_int = (int) vsize;
|
||||
int size_int = (intptr_t) vsize;
|
||||
|
||||
sprintf(buffer, "%i", size_int);
|
||||
|
||||
|
||||
@@ -41,9 +41,6 @@ typedef struct W_SplitView {
|
||||
/* TODO: rewrite --Dan */
|
||||
#define _GetSubviewsCount() WMGetArrayItemCount(sPtr->subviews)
|
||||
|
||||
#define _AddPSubviewStruct(P) \
|
||||
(WMAddToArray(sPtr->subviews,((void*)P)))
|
||||
|
||||
#define _GetPSubviewStructAt(i) \
|
||||
((W_SplitViewSubview*)WMGetFromArray(sPtr->subviews,(i)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user