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