src/video/x11/SDL_x11mouse.c
changeset 5505 c4bb4c8ea6fd
parent 5481 22dfc3958dc3
child 5535 96594ac5fd1a
equal deleted inserted replaced
5504:469da3d31cbd 5505:c4bb4c8ea6fd
   178         bg.blue  = bbg * 257 / bgBits;
   178         bg.blue  = bbg * 257 / bgBits;
   179     }
   179     }
   180     else bg.red = bg.green = bg.blue = 0;
   180     else bg.red = bg.green = bg.blue = 0;
   181 
   181 
   182     data_pixmap = XCreateBitmapFromData(display, DefaultRootWindow(display),
   182     data_pixmap = XCreateBitmapFromData(display, DefaultRootWindow(display),
   183                                         data_bits, surface->w, surface->h);
   183                                         (char*)data_bits,
       
   184                                         surface->w, surface->h);
   184     mask_pixmap = XCreateBitmapFromData(display, DefaultRootWindow(display),
   185     mask_pixmap = XCreateBitmapFromData(display, DefaultRootWindow(display),
   185                                         mask_bits, surface->w, surface->h);
   186                                         (char*)mask_bits,
       
   187                                         surface->w, surface->h);
   186     cursor = XCreatePixmapCursor(display, data_pixmap, mask_pixmap,
   188     cursor = XCreatePixmapCursor(display, data_pixmap, mask_pixmap,
   187                                  &fg, &bg, hot_x, hot_y);
   189                                  &fg, &bg, hot_x, hot_y);
   188 	XFreePixmap(display, data_pixmap);
   190 	XFreePixmap(display, data_pixmap);
   189 	XFreePixmap(display, mask_pixmap);
   191 	XFreePixmap(display, mask_pixmap);
   190 
   192