[cairo-commit] rcairo/src/lib/cairo/context color.rb,1.1,1.2

Kouhei Sutou commit at pdx.freedesktop.org
Mon Apr 16 00:31:53 PDT 2007


Committed by: kou

Update of /cvs/cairo/rcairo/src/lib/cairo/context
In directory kemper:/tmp/cvs-serv31172/src/lib/cairo/context

Modified Files:
	color.rb 
Log Message:
* src/lib/cairo/color.rb, src/lib/cairo/pattern.rb,
  src/lib/cairo/context/color.rb, src/rb_cairo_pattern.c: improved
  Cairo::Color interface.

* sample/: used Cairo::Color.


Index: color.rb
===================================================================
RCS file: /cvs/cairo/rcairo/src/lib/cairo/context/color.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- color.rb	16 Apr 2007 03:12:49 -0000	1.1
+++ color.rb	16 Apr 2007 07:31:43 -0000	1.2
@@ -4,7 +4,7 @@
   class Context
     module Color
       def set_source_color(color)
-        set_source_rgba(*color.to_rgb.to_a)
+        set_source_rgba(*Cairo::Color.parse(color).to_rgb.to_a)
       end
     end
   end



More information about the cairo-commit mailing list