src/video/x11/SDL_x11mouse.c
changeset 5505 c4bb4c8ea6fd
parent 5481 22dfc3958dc3
child 5535 96594ac5fd1a
--- 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);