diff src/X_main.c @ 56:e444a8c01735

Change interface of paint_radial_new()
author Thinker K.F. Li <thinker@branda.to>
date Sun, 10 Aug 2008 18:27:52 +0800
parents 01ed2bc37eed
children ab028c9f0930
line wrap: on
line diff
--- a/src/X_main.c	Sun Aug 10 16:44:21 2008 +0800
+++ b/src/X_main.c	Sun Aug 10 18:27:52 2008 +0800
@@ -157,9 +157,10 @@
     face = cairo_get_font_face(tmpcr);
     text = sh_text_new("hello \xe6\xbc\xa2\xe5\xad\x97", 10, h / 4,
 		       36.0, face);
+    text_fill = paint_radial_new(&rdman, 100, h / 4, 70);
     grad_stop_init(text_stops, 0, 0.2, 0.9, 0.2, 1);
     grad_stop_init(text_stops + 1, 1, 0.9, 0.2, 0.2, 0.1);
-    text_fill = paint_radial_new(&rdman, 100, h / 4, 70, 2, text_stops);
+    paint_radial_stops(text_fill, 2, text_stops);
     rdman_paint_stroke(&rdman, text_stroke, text);
     text->stroke_width = 0.5;
     rdman_paint_fill(&rdman, text_fill, text);