changeset 1115:673978a8bc4b

Assign width and height of a rdman for X backend
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 08 Dec 2010 23:22:54 +0800
parents 7451af5d63ec
children 9163eefa0039
files include/mb_graph_engine_cairo.h src/X_supp.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/include/mb_graph_engine_cairo.h	Wed Dec 08 22:39:12 2010 +0800
+++ b/include/mb_graph_engine_cairo.h	Wed Dec 08 23:22:54 2010 +0800
@@ -56,6 +56,7 @@
 #define mbe_stroke cairo_stroke
 #define mbe_create cairo_create
 #define mbe_paint cairo_paint
+#define mbe_flush(canvas)
 #define mbe_save cairo_save
 #define mbe_fill cairo_fill
 #define mbe_init()
--- a/src/X_supp.c	Wed Dec 08 22:39:12 2010 +0800
+++ b/src/X_supp.c	Wed Dec 08 23:22:54 2010 +0800
@@ -849,6 +849,8 @@
     xmb_rt->backend_cr = mbe_create(xmb_rt->backend_surface);
     
     xmb_rt->rdman = (redraw_man_t *)malloc(sizeof(redraw_man_t));
+    xmb_rt->rdman->w = w;
+    xmb_rt->rdman->h = h;
     redraw_man_init(xmb_rt->rdman, xmb_rt->cr, xmb_rt->backend_cr);
     /* FIXME: This is a wired loopback reference. This is inly
      *        required when we need to get the xmb_rt->tman for the