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:
committed by
Richard Hult
parent
43c5ef3128
commit
a641e8fb92
@ -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>
|
2008-11-05 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
* gtk/gtkstatusicon.c: (gtk_status_icon_set_has_tooltip),
|
* gtk/gtkstatusicon.c: (gtk_status_icon_set_has_tooltip),
|
||||||
|
|||||||
@ -281,10 +281,10 @@ gdk_window_impl_quartz_begin_paint_region (GdkPaintable *paintable,
|
|||||||
_gdk_quartz_colormap_get_rgba_from_pixel (gdk_drawable_get_colormap (drawable_impl->wrapper),
|
_gdk_quartz_colormap_get_rgba_from_pixel (gdk_drawable_get_colormap (drawable_impl->wrapper),
|
||||||
GDK_WINDOW_OBJECT (drawable_impl->wrapper)->bg_color.pixel,
|
GDK_WINDOW_OBJECT (drawable_impl->wrapper)->bg_color.pixel,
|
||||||
&r, &g, &b, &a);
|
&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,
|
CGContextFillRect (cg_context,
|
||||||
CGRectMake (rects[i].x, rects[i].y,
|
CGRectMake (rects[i].x, rects[i].y,
|
||||||
rects[i].width, rects[i].height));
|
rects[i].width, rects[i].height));
|
||||||
|
|||||||
Reference in New Issue
Block a user