gtk+ r21759 - in trunk: . gdk/quartz
- From: rhult svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21759 - in trunk: . gdk/quartz
- Date: Wed, 5 Nov 2008 10:26:47 +0000 (UTC)
Author: rhult
Date: Wed Nov 5 10:26:47 2008
New Revision: 21759
URL: http://svn.gnome.org/viewvc/gtk+?rev=21759&view=rev
Log:
2008-11-05 Richard Hult <richard imendio com>
* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_impl_quartz_begin_paint_region): Set the fill color
outside the loop.
Modified:
trunk/ChangeLog
trunk/gdk/quartz/gdkwindow-quartz.c
Modified: trunk/gdk/quartz/gdkwindow-quartz.c
==============================================================================
--- trunk/gdk/quartz/gdkwindow-quartz.c (original)
+++ trunk/gdk/quartz/gdkwindow-quartz.c Wed Nov 5 10:26:47 2008
@@ -281,13 +281,13 @@
_gdk_quartz_colormap_get_rgba_from_pixel (gdk_drawable_get_colormap (drawable_impl->wrapper),
GDK_WINDOW_OBJECT (drawable_impl->wrapper)->bg_color.pixel,
&r, &g, &b, &a);
+ CGContextSetRGBFillColor (cg_context, r, g, b, a);
- for (i = 0; i < n_rects; i++)
+ for (i = 0; i < n_rects; i++)
{
- CGContextSetRGBFillColor (cg_context, r, g, b, a);
CGContextFillRect (cg_context,
- CGRectMake (rects[i].x, rects[i].y,
- rects[i].width, rects[i].height));
+ CGRectMake (rects[i].x, rects[i].y,
+ rects[i].width, rects[i].height));
}
gdk_quartz_drawable_release_context (GDK_DRAWABLE (impl), cg_context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]