1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 12:00:31 +01:00

util: renamed wmiv DEBUG constant name

To prevent compilation warning message saying DEBUG name is already defined
This commit is contained in:
David Maciejak
2020-03-28 12:31:22 +08:00
committed by Carlos R. Mafra
parent 91f8e21668
commit bb716a4ca1

View File

@@ -54,7 +54,7 @@ extern int XpmCreatePixmapFromData(Display *, Drawable, char **, Pixmap *, Pixma
#include "wmiv.h" #include "wmiv.h"
#endif #endif
#define DEBUG 0 #define WMIV_DEBUG 0
#define FILE_SEPARATOR '/' #define FILE_SEPARATOR '/'
Display *dpy; Display *dpy;
@@ -513,7 +513,7 @@ int change_image(int way)
current_index = max_index; current_index = max_index;
} }
} }
if (DEBUG) if (WMIV_DEBUG)
fprintf(stderr, "current file is> %s\n", (char *)current_link->data); fprintf(stderr, "current file is> %s\n", (char *)current_link->data);
img = load_oriented_image(ctx, current_link->data, 0); img = load_oriented_image(ctx, current_link->data, 0);
@@ -789,7 +789,7 @@ int main(int argc, char **argv)
merge_with_background(img); merge_with_background(img);
rescale_image(); rescale_image();
if (DEBUG) if (WMIV_DEBUG)
fprintf(stderr, "display size: %dx%d\n", max_width, max_height); fprintf(stderr, "display size: %dx%d\n", max_width, max_height);
win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 0, 0, win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 0, 0,