[cairo-commit] cairo-demo/cairo_snippets ChangeLog, 1.17, 1.18 xxx_clip_rectangle.cairo, NONE, 1.1

Carl Worth commit at pdx.freedesktop.org
Tue Aug 3 11:45:01 PDT 2004


Committed by: cworth

Update of /cvs/cairo/cairo-demo/cairo_snippets
In directory pdx:/tmp/cvs-serv32206

Modified Files:
	ChangeLog 
Added Files:
	xxx_clip_rectangle.cairo 
Log Message:

        * xxx_clip_rectangle.cairo: Added test to deomnstrate current bug
        in rectangle-based clipping.


Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-demo/cairo_snippets/ChangeLog,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** ChangeLog	7 Jun 2004 01:02:35 -0000	1.17
--- ChangeLog	3 Aug 2004 18:44:59 -0000	1.18
***************
*** 1,2 ****
--- 1,7 ----
+ 2004-08-03  Carl Worth  <cworth at isi.edu>
+ 
+ 	* xxx_clip_rectangle.cairo: Added test to deomnstrate current bug
+ 	in rectangle-based clipping.
+ 
  2004-07-04  OEyvind Kolaas <pippin at freedesktop.org>
  	* prepare_snippets.c : escape back slash correctly

--- NEW FILE: xxx_clip_rectangle.cairo ---
/* This is intended to test the rectangle-based clipping support in
 * cairo.  On 2004-08-03, we noticed a bug in which this clipping
 * wasn't happening at all, so we disabled it in
 * cairo_gstate.c:extract_transformed_rectangle.
 *
 * When that works again, and is re-enabled, this test can be renamed
 * without the xxx_.
 */
cairo_new_path (cr);
cairo_move_to (cr, .25, .25);
cairo_line_to (cr, .25, .75);
cairo_line_to (cr, .75, .75);
cairo_line_to (cr, .75, .25);
cairo_line_to (cr, .25, .25);
cairo_close_path (cr);

cairo_clip (cr);

cairo_move_to (cr, 0, 0);
cairo_line_to (cr, 1, 1);
cairo_stroke (cr);




More information about the cairo-commit mailing list