Fixed signed/unsigned warning.
This commit is contained in:
parent
7472736e2d
commit
0b1225e301
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue