[cairo-commit] gtkcairo/gtkcairo gdkcairo.c,1.12,1.13

David Reveman commit at pdx.freedesktop.org
Tue Feb 22 09:35:05 PST 2005


Committed by: davidr

Update of /cvs/cairo/gtkcairo/gtkcairo
In directory gabe:/tmp/cvs-serv1280/gtkcairo

Modified Files:
	gdkcairo.c 
Log Message:
Fix GL output

Index: gdkcairo.c
===================================================================
RCS file: /cvs/cairo/gtkcairo/gtkcairo/gdkcairo.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- gdkcairo.c	25 Jan 2005 20:53:12 -0000	1.12
+++ gdkcairo.c	22 Feb 2005 17:35:03 -0000	1.13
@@ -324,13 +324,13 @@
         glitz_drawable_t *drawable;
         glitz_drawable_format_t *dformat;
 
-        cairo_rectangle (self->cr, 0, 0, widget->allocation.width,
+	cairo_save (self->cr);
+	cairo_rectangle (self->cr, 0, 0, widget->allocation.width,
                          widget->allocation.height);
-        cairo_set_rgb_color (self->cr, 0.7, 0.7, 0.7);  /* FIXME: use color from style */
-        gtk_cairo_set_gdk_color (self->cr,
-                                 &(self->widget->style->
-                                   bg[GTK_STATE_NORMAL]));
+	gtk_cairo_set_gdk_color (self->cr,
+                                 &(self->widget->style->bg[GTK_STATE_NORMAL]));
         cairo_fill (self->cr);
+	cairo_restore (self->cr);
 
         g_signal_emit_by_name (self->widget, "paint", self->cr);
 




More information about the cairo-commit mailing list