[cairo-commit] cairo-demo/X11 ChangeLog, 1.5, 1.6 cairo-knockout.c, 1.11, 1.12

David Reveman commit at pdx.freedesktop.org
Tue Apr 6 13:08:24 PDT 2004


Committed by: davidr

Update of /cvs/cairo/cairo-demo/X11
In directory pdx:/tmp/cvs-serv29919/X11

Modified Files:
	ChangeLog cairo-knockout.c 
Log Message:
Fix cairo_set_pattern

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-demo/X11/ChangeLog,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** a/ChangeLog	8 Dec 2003 20:58:23 -0000	1.5
--- b/ChangeLog	6 Apr 2004 20:08:20 -0000	1.6
***************
*** 1,2 ****
--- 1,6 ----
+ 2004-04-06  David Reveman  <c99drn at cs.umu.se>
+ 
+ 	* cairo-knockout.c (fill_checks): Fix cairo_set_pattern.
+ 
  2003-12-08  Dave Beckett  <Dave.Beckett at bristol.ac.uk>
  

Index: cairo-knockout.c
===================================================================
RCS file: /cvs/cairo/cairo-demo/X11/cairo-knockout.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** a/cairo-knockout.c	8 Dec 2003 20:58:35 -0000	1.11
--- b/cairo-knockout.c	6 Apr 2004 20:08:20 -0000	1.12
***************
*** 54,57 ****
--- 54,58 ----
  {
      cairo_surface_t *check;
+     cairo_pattern_t *check_pattern;
      
      cairo_save (cr);
***************
*** 89,96 ****
      /* Fill the whole surface with the check */
  
!     cairo_set_pattern (cr, check);
      cairo_rectangle (cr, 0, 0, width, height);
      cairo_fill (cr);
  
      cairo_surface_destroy (check);
  
--- 90,99 ----
      /* Fill the whole surface with the check */
  
!     check_pattern = cairo_pattern_create_for_surface (check);
!     cairo_set_pattern (cr, check_pattern);
      cairo_rectangle (cr, 0, 0, width, height);
      cairo_fill (cr);
  
+     cairo_pattern_destroy (check_pattern);
      cairo_surface_destroy (check);
  





More information about the cairo-commit mailing list