forked from AuroraMiddleware/gtk
Fix compile warning in gdk_cursor_new_from_pixmap
This commit is contained in:
parent
dd415881be
commit
f3a5bf48d4
@ -249,7 +249,7 @@ gdk_cursor_new_from_pixmap (GdkPixmap *source,
|
|||||||
NSImage *image;
|
NSImage *image;
|
||||||
NSCursor *nscursor;
|
NSCursor *nscursor;
|
||||||
GdkCursor *cursor;
|
GdkCursor *cursor;
|
||||||
NSInteger width, height;
|
int width, height;
|
||||||
gint tmp_x, tmp_y;
|
gint tmp_x, tmp_y;
|
||||||
guchar *dst_data, *mask_data, *src_data;
|
guchar *dst_data, *mask_data, *src_data;
|
||||||
guchar *mask_start, *src_start;
|
guchar *mask_start, *src_start;
|
||||||
@ -265,7 +265,7 @@ gdk_cursor_new_from_pixmap (GdkPixmap *source,
|
|||||||
gdk_drawable_get_size (source, &width, &height);
|
gdk_drawable_get_size (source, &width, &height);
|
||||||
|
|
||||||
bitmap_rep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL
|
bitmap_rep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL
|
||||||
pixelsWide:width pixelsHigh:height
|
pixelsWide:(NSInteger)width pixelsHigh:(NSInteger)height
|
||||||
bitsPerSample:8 samplesPerPixel:4
|
bitsPerSample:8 samplesPerPixel:4
|
||||||
hasAlpha:YES isPlanar:NO colorSpaceName:NSDeviceRGBColorSpace
|
hasAlpha:YES isPlanar:NO colorSpaceName:NSDeviceRGBColorSpace
|
||||||
bytesPerRow:0 bitsPerPixel:0];
|
bytesPerRow:0 bitsPerPixel:0];
|
||||||
|
Loading…
Reference in New Issue
Block a user