From b0a17e5a37a398365bc8c7da4ce3eb6411aea291 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Thu, 21 Oct 2010 15:40:05 +0200 Subject: [PATCH] Pass pixmap to _gdk_pixmap_get_cgimage() and not the impl --- gdk/quartz/gdkgc-quartz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdk/quartz/gdkgc-quartz.c b/gdk/quartz/gdkgc-quartz.c index eaf4be3b92..c43db8e857 100644 --- a/gdk/quartz/gdkgc-quartz.c +++ b/gdk/quartz/gdkgc-quartz.c @@ -363,7 +363,7 @@ gdk_quartz_draw_tiled_pattern (void *info, CGImageRef pattern_image; size_t width, height; - pattern_image = _gdk_pixmap_get_cgimage (GDK_PIXMAP_OBJECT (_gdk_gc_get_tile (gc))->impl); + pattern_image = _gdk_pixmap_get_cgimage (GDK_PIXMAP (_gdk_gc_get_tile (gc))); width = CGImageGetWidth (pattern_image); height = CGImageGetHeight (pattern_image); @@ -384,7 +384,7 @@ gdk_quartz_draw_stippled_pattern (void *info, CGRect rect; CGColorRef color; - pattern_image = _gdk_pixmap_get_cgimage (GDK_PIXMAP_OBJECT (_gdk_gc_get_stipple (gc))->impl); + pattern_image = _gdk_pixmap_get_cgimage (GDK_PIXMAP (_gdk_gc_get_stipple (gc))); rect = CGRectMake (0, 0, CGImageGetWidth (pattern_image), CGImageGetHeight (pattern_image)); @@ -410,7 +410,7 @@ gdk_quartz_draw_opaque_stippled_pattern (void *info, CGRect rect; CGColorRef color; - pattern_image = _gdk_pixmap_get_cgimage (GDK_PIXMAP_OBJECT (_gdk_gc_get_stipple (gc))->impl); + pattern_image = _gdk_pixmap_get_cgimage (GDK_PIXMAP (_gdk_gc_get_stipple (gc))); rect = CGRectMake (0, 0, CGImageGetWidth (pattern_image), CGImageGetHeight (pattern_image));