diff options
author | Kristian Rietveld <kris@gtk.org> | 2009-12-27 22:59:51 +0100 |
---|---|---|
committer | Kristian Rietveld <kris@gtk.org> | 2010-03-14 11:02:39 +0100 |
commit | c8e5dbd4de4ab5ba01b4f7f02115569cad0ec6c5 (patch) | |
tree | 99c7505c938aae016d63a12fc2ec9ebf3d59bb0b | |
parent | df3e8ec0194f30ee775b774d85ac6f373a821d45 (diff) | |
download | gdk-pixbuf-c8e5dbd4de4ab5ba01b4f7f02115569cad0ec6c5.tar.gz |
Fix compile warning in gdk_cursor_new_from_pixmap
(cherry picked from commit f3a5bf48d4e3131ce6087afad5e25bdfae1c5084)
-rw-r--r-- | gdk/quartz/gdkcursor-quartz.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/quartz/gdkcursor-quartz.c b/gdk/quartz/gdkcursor-quartz.c index e8759690e..dcd422003 100644 --- a/gdk/quartz/gdkcursor-quartz.c +++ b/gdk/quartz/gdkcursor-quartz.c @@ -249,7 +249,7 @@ gdk_cursor_new_from_pixmap (GdkPixmap *source, NSImage *image; NSCursor *nscursor; GdkCursor *cursor; - NSInteger width, height; + int width, height; gint tmp_x, tmp_y; guchar *dst_data, *mask_data, *src_data; guchar *mask_start, *src_start; @@ -265,7 +265,7 @@ gdk_cursor_new_from_pixmap (GdkPixmap *source, gdk_drawable_get_size (source, &width, &height); bitmap_rep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL - pixelsWide:width pixelsHigh:height + pixelsWide:(NSInteger)width pixelsHigh:(NSInteger)height bitsPerSample:8 samplesPerPixel:4 hasAlpha:YES isPlanar:NO colorSpaceName:NSDeviceRGBColorSpace bytesPerRow:0 bitsPerPixel:0]; |