[cairo-commit] rcairo/samples png.rb,1.14,1.15

Kouhei Sutou commit at pdx.freedesktop.org
Thu Apr 10 22:20:08 PDT 2008


Committed by: kou

Update of /cvs/cairo/rcairo/samples
In directory kemper:/tmp/cvs-serv19779/samples

Modified Files:
	png.rb 
Log Message:
* samples/png.rb: use convenience notation.


Index: png.rb
===================================================================
RCS file: /cvs/cairo/rcairo/samples/png.rb,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- png.rb	16 Apr 2007 07:31:43 -0000	1.14
+++ png.rb	11 Apr 2008 05:24:55 -0000	1.15
@@ -40,7 +40,6 @@
   stride = cr.target.stride
 end
 
-Cairo::ImageSurface.new(data, Cairo::FORMAT_ARGB32,
-                        width, height, stride) do |surface|
+Cairo::ImageSurface.new(data, :argb32, width, height, stride) do |surface|
   surface.write_to_png("test-renew.png")
 end



More information about the cairo-commit mailing list