[cairo-commit] CairoJava/test/org/cairographics/cairo/test TestCairoImage.java, 1.4, 1.5

Soorya Kuloor commit at pdx.freedesktop.org
Thu May 20 12:36:41 PDT 2004


Committed by: skuloor

Update of /cvs/cairo/CairoJava/test/org/cairographics/cairo/test
In directory pdx:/tmp/cvs-serv30239/test/org/cairographics/cairo/test

Modified Files:
	TestCairoImage.java 
Log Message:
1. Port to latest cairo CVS version.
2. Add support for glitz_surface_flush etc functions.

Index: TestCairoImage.java
===================================================================
RCS file: /cvs/cairo/CairoJava/test/org/cairographics/cairo/test/TestCairoImage.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** a/TestCairoImage.java	30 Apr 2004 17:56:29 -0000	1.4
--- b/TestCairoImage.java	20 May 2004 19:36:38 -0000	1.5
***************
*** 212,216 ****
          CairoGlitzSurface sf = new CairoGlitzSurface(this);
          Cairo cairo = new Cairo(sf);
!         sf.flush(0, 0, this.getSize().x, this.getSize().y);
          //cairo.translate(-e.x, -e.y);
          
--- 212,222 ----
          CairoGlitzSurface sf = new CairoGlitzSurface(this);
          Cairo cairo = new Cairo(sf);
! 
!         // display the image
!         sf.setDrawBuffer(CairoGlitzSurface.GLITZ_BUFFER_FRONT);
!         sf.copyArea(sf, 0, 0, this.getSize().x, this.getSize().y, 0, 0);
!         sf.setDrawBuffer(CairoGlitzSurface.GLITZ_BUFFER_BACK);
!         sf.flush();
! 
          //cairo.translate(-e.x, -e.y);
          
***************
*** 218,222 ****
          draw_stuff(cairo);
  
!         sf.flush(0, 0, this.getSize().x, this.getSize().y);
          cairo.dispose();
          
--- 224,231 ----
          draw_stuff(cairo);
  
!         sf.setDrawBuffer(CairoGlitzSurface.GLITZ_BUFFER_FRONT);
!         sf.copyArea(sf, 0, 0, this.getSize().x, this.getSize().y, 0, 0);
!         sf.setDrawBuffer(CairoGlitzSurface.GLITZ_BUFFER_BACK);
!         sf.flush();
          cairo.dispose();
          





More information about the cairo-commit mailing list