[gtk+/native-layout] Fix compile warning in gdk_cursor_new_from_pixmap



commit 5d3e41499421acd0bbdc2df7cf2c6eb4ffe64538
Author: Kristian Rietveld <kris gtk org>
Date:   Sun Dec 27 22:59:51 2009 +0100

    Fix compile warning in gdk_cursor_new_from_pixmap

 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 e875969..dcd4220 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];



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]