Set the fill color outside the loop.

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.

svn path=/trunk/; revision=21759
This commit is contained in:
Richard Hult 2008-11-05 10:26:47 +00:00 committed by Richard Hult
parent 43c5ef3128
commit a641e8fb92
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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.
2008-11-05 Richard Hult <richard@imendio.com>
* gtk/gtkstatusicon.c: (gtk_status_icon_set_has_tooltip),

View File

@ -281,13 +281,13 @@ gdk_window_impl_quartz_begin_paint_region (GdkPaintable *paintable,
_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);