#include <stdio.h>
#include <X11/Xutil.h>
-#include "logo-50.xpm"
-#include "logo-180.xpm"
+#include "images/logo-50.xpm"
+#include "images/logo-180.xpm"
static const char hex[128] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
unsigned long *pixels;
XImage *ximage = 0;
- if (4 != sscanf (*data, "%d %d %d %d %c", &w, &h, &ncolors, &nbytes, &c))
+ if (4 != sscanf ((const char *) *data,
+ "%d %d %d %d %c", &w, &h, &ncolors, &nbytes, &c))
abort();
if (ncolors < 1 || ncolors > 255)
abort();
if (mask_ret)
{
int s = (w8 * h) + 1;
- *mask_ret = (char *) malloc (s);
+ *mask_ret = (unsigned char *) malloc (s);
if (!*mask_ret)
mask_ret = 0;
else
if (mask_ret && mask)
{
- *mask_ret = XCreatePixmapFromBitmapData (dpy, window, mask,
- iw, ih, 1L, 0L, 1);
+ *mask_ret = (Pixmap)
+ XCreatePixmapFromBitmapData (dpy, window, (char *) mask,
+ iw, ih, 1L, 0L, 1);
free (mask);
}
}