Fixed signed/unsigned warning.
authorSam Lantinga <slouken@libsdl.org>
Fri, 25 Mar 2011 10:26:25 -0700
changeset 5505 c4bb4c8ea6fd
parent 5504 469da3d31cbd
child 5506 82a09d5d0f07
Fixed signed/unsigned warning.
src/video/x11/SDL_x11mouse.c
--- a/src/video/x11/SDL_x11mouse.c	Tue Mar 22 10:48:33 2011 -0700
+++ b/src/video/x11/SDL_x11mouse.c	Fri Mar 25 10:26:25 2011 -0700
@@ -180,9 +180,11 @@
     else bg.red = bg.green = bg.blue = 0;
 
     data_pixmap = XCreateBitmapFromData(display, DefaultRootWindow(display),
-                                        data_bits, surface->w, surface->h);
+                                        (char*)data_bits,
+                                        surface->w, surface->h);
     mask_pixmap = XCreateBitmapFromData(display, DefaultRootWindow(display),
-                                        mask_bits, surface->w, surface->h);
+                                        (char*)mask_bits,
+                                        surface->w, surface->h);
     cursor = XCreatePixmapCursor(display, data_pixmap, mask_pixmap,
                                  &fg, &bg, hot_x, hot_y);
 	XFreePixmap(display, data_pixmap);