[cairo-commit] cairo-demo/svgspacewar ChangeLog, 1.3, 1.4 svgspacewar.c, 1.2, 1.3

Carl Worth commit at pdx.freedesktop.org
Tue Jun 21 10:44:45 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo-demo/svgspacewar
In directory gabe:/tmp/cvs-serv3248

Modified Files:
	ChangeLog svgspacewar.c 
Log Message:

        * svgspacewar.c: (on_expose_event): Remove unneeded cairo_clip to
        draw background color. It was just slowing things down when
        scaling.


Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-demo/svgspacewar/ChangeLog,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ChangeLog	21 Jun 2005 15:28:23 -0000	1.3
+++ ChangeLog	21 Jun 2005 17:44:40 -0000	1.4
@@ -1,5 +1,11 @@
 2005-06-21  Carl Worth  <cworth at cworth.org>
 
+	* svgspacewar.c: (on_expose_event): Remove unneeded cairo_clip to
+	draw background color. It was just slowing things down when
+	scaling.
+
+2005-06-21  Carl Worth  <cworth at cworth.org>
+
 	From Nigel Tao <nigel.tao at myrealbox.com>:
 
 	* Makefile:

Index: svgspacewar.c
===================================================================
RCS file: /cvs/cairo/cairo-demo/svgspacewar/svgspacewar.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- svgspacewar.c	21 Jun 2005 15:28:23 -0000	1.2
+++ svgspacewar.c	21 Jun 2005 17:44:40 -0000	1.3
@@ -285,9 +285,8 @@
 
   cairo_scale (cr, debug_scale_factor, debug_scale_factor);
 
-  cairo_rectangle (cr, 0, 0, WIDTH, HEIGHT);
+  /* draw background space color */
   cairo_set_source_rgb (cr, 0.1, 0.0, 0.1);
-  cairo_clip (cr);
   cairo_paint (cr);
 
   // draw any stars...




More information about the cairo-commit mailing list