[cairo-commit] pycairo/examples context-subclass.py, 1.5, 1.6 gradient.py, 1.6, 1.7 hering.py, 1.6, 1.7 spiral.py, 1.4, 1.5 warpedtext.py, 1.9, 1.10

Steve Chaplin commit at pdx.freedesktop.org
Fri May 6 21:28:09 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/examples
In directory gabe:/tmp/cvs-serv9073/examples

Modified Files:
	context-subclass.py gradient.py hering.py spiral.py 
	warpedtext.py 
Log Message:
SC

Index: context-subclass.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/context-subclass.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- context-subclass.py	27 Apr 2005 03:54:02 -0000	1.5
+++ context-subclass.py	7 May 2005 04:28:06 -0000	1.6
@@ -38,8 +38,7 @@
         self.stroke()
         
 surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, WIDTH, HEIGHT)
-ctx = MyContext()
-ctx.set_target_surface(surface)
+ctx = MyContext(surface)
 
 ctx.draw()
 

Index: gradient.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gradient.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- gradient.py	27 Apr 2005 03:54:02 -0000	1.6
+++ gradient.py	7 May 2005 04:28:06 -0000	1.7
@@ -8,8 +8,7 @@
 WIDTH, HEIGHT  = 256, 256
 
 surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, WIDTH, HEIGHT)
-ctx = cairo.Context()
-ctx.set_target_surface(surface)
+ctx = cairo.Context(surface)
 
 ctx.scale (WIDTH/1.0, HEIGHT/1.0)
 

Index: hering.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/hering.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- hering.py	27 Apr 2005 03:54:02 -0000	1.6
+++ hering.py	7 May 2005 04:28:06 -0000	1.7
@@ -43,8 +43,7 @@
 
 
 surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, WIDTH, HEIGHT)
-ctx = cairo.Context()
-ctx.set_target_surface(surface)
+ctx = cairo.Context(surface)
 
 ctx.rectangle (0, 0, WIDTH, HEIGHT)
 ctx.set_source_rgb (1, 1, 1)

Index: spiral.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/spiral.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- spiral.py	2 May 2005 02:25:51 -0000	1.4
+++ spiral.py	7 May 2005 04:28:06 -0000	1.5
@@ -24,9 +24,8 @@
     ctx.stroke()
 
 
-ctx = cairo.Context()
 surface = cairo.ImageSurface (cairo.FORMAT_ARGB32, WIDTH, HEIGHT)
-ctx.set_target_surface(surface)
+ctx = cairo.Context(surface)
 
 ctx.rectangle (0, 0, WIDTH, HEIGHT)
 ctx.set_source_rgb (1, 1, 1)

Index: warpedtext.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/warpedtext.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- warpedtext.py	27 Apr 2005 03:54:02 -0000	1.9
+++ warpedtext.py	7 May 2005 04:28:06 -0000	1.10
@@ -36,8 +36,7 @@
 WIDTH, HEIGHT = 512, 512
 
 surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, WIDTH, HEIGHT)
-ctx = cairo.Context()
-ctx.set_target_surface(surface)
+ctx = cairo.Context(surface)
 
 ctx.identity_matrix()
 




More information about the cairo-commit mailing list