Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed signed/unsigned warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 25, 2011
1 parent 7ce2021 commit 12485d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/video/x11/SDL_x11mouse.c
Expand Up @@ -180,9 +180,11 @@ X11_CreatePixmapCursor(SDL_Surface * surface, int hot_x, int hot_y)
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);
Expand Down

0 comments on commit 12485d0

Please sign in to comment.