[cairo-commit] rcairo/samples png.rb,1.6,1.7

Kouhei Sutou commit at pdx.freedesktop.org
Tue Oct 11 18:14:37 PDT 2005


Committed by: kou

Update of /cvs/cairo/rcairo/samples
In directory gabe:/tmp/cvs-serv4071/samples

Modified Files:
	png.rb 
Log Message:
* samples/png.rb: Use Cairo::Context#set_source_rgba instead of
  Cairo::Context#set_source.


Index: png.rb
===================================================================
RCS file: /cvs/cairo/rcairo/samples/png.rb,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- png.rb	9 Oct 2005 14:10:06 -0000	1.6
+++ png.rb	12 Oct 2005 01:14:35 -0000	1.7
@@ -8,7 +8,7 @@
 cr=Context.new(ImageSurface.new(FORMAT_ARGB32, 200,200))
 
 # fill background with white
-cr.set_source(1.0, 1.0, 1.0)
+cr.set_source_rgba(1.0, 1.0, 1.0)
 cr.paint
 
 # create shape



More information about the cairo-commit mailing list