diff src/X_main.c @ 7:569f3168ba53

Clear background & tranform relative pos into absolute ones
author Thinker K.F. Li <thinker@branda.to>
date Sat, 26 Jul 2008 02:53:08 +0800
parents 772511b8b9be
children 94b4b5bd8810
line wrap: on
line diff
--- a/src/X_main.c	Sat Jul 26 02:41:00 2008 +0800
+++ b/src/X_main.c	Sat Jul 26 02:53:08 2008 +0800
@@ -15,8 +15,9 @@
     memset(coord.aggr_matrix, 0, sizeof(co_aix) * 6);
     coord.aggr_matrix[0] = 1;
     coord.aggr_matrix[1] = 0.5;
+    coord.aggr_matrix[2] = -30;
     coord.aggr_matrix[4] = 1;
-    coord.aggr_matrix[5] = 0;
+    coord.aggr_matrix[5] = -20;
     sh_path_transform(path, &coord);
     sh_path_draw(path, cr);
 }
@@ -25,6 +26,8 @@
     cairo_t *cr;
 
     cr = cairo_create(surface);
+    cairo_set_source_rgb(cr, 0, 0, 0);
+    cairo_paint(cr);
     cairo_set_source_rgb(cr, 0.9, 0.1, 0.1);
     draw_path(cr, w, h);
     cairo_set_source_rgb(cr, 0.5, 0.9, 0.8);