diff src/redraw_man.c @ 450:a417fd980228

Replace cairo_format_t with mb_img_fmt_t. - Replace all CAIRO_FORAMT_* with MB_IFMT_* - wrap functions return or are argumented with image format.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 05 Aug 2009 15:54:44 +0800
parents 16116d84bc5e
children cd6f57b9b104
line wrap: on
line diff
--- a/src/redraw_man.c	Tue Aug 04 23:47:34 2009 +0800
+++ b/src/redraw_man.c	Wed Aug 05 15:54:44 2009 +0800
@@ -512,7 +512,7 @@
     mbe_surface_t *surface;
     mbe_t *cr;
     
-    surface = mbe_image_surface_create(CAIRO_FORMAT_ARGB32,
+    surface = mbe_image_surface_create(MB_IFMT_ARGB32,
 					 w, h);
     cr = mbe_create(surface);
 
@@ -1868,7 +1868,7 @@
     mbe_operator_t old_op;
 
     old_op = mbe_get_operator(canvas);
-    mbe_set_operator(canvas, CAIRO_OPERATOR_CLEAR);
+    mbe_set_operator(canvas, MBE_OPERATOR_CLEAR);
     mbe_paint(canvas);
     mbe_set_operator(canvas, old_op);
 }
@@ -1898,7 +1898,7 @@
 	make_clip(rdman->backend, n_dirty_areas, dirty_areas);
     
     saved_op = mbe_get_operator(rdman->backend);
-    mbe_set_operator(rdman->backend, CAIRO_OPERATOR_SOURCE);
+    mbe_set_operator(rdman->backend, MBE_OPERATOR_SOURCE);
     mbe_paint(rdman->backend);
     mbe_set_operator(rdman->backend, saved_op);
 }