]> Pileus Git - ~andy/gtk/commitdiff
Fix compile warning in gdk_cursor_new_from_pixmap
authorKristian Rietveld <kris@gtk.org>
Sun, 27 Dec 2009 21:59:51 +0000 (22:59 +0100)
committerKristian Rietveld <kris@gtk.org>
Mon, 28 Dec 2009 20:18:57 +0000 (21:18 +0100)
gdk/quartz/gdkcursor-quartz.c

index e8759690e54957ce02928abfadafbc176408c009..dcd4220031986196d91ea32e3cfc6c630bc955f3 100644 (file)
@@ -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];