changeset 1421:84368f4bc988

Fix issue of rdman->w and rdman->h always being zeor. It is reported by wycc in mailing list. w and h of rdman are assigned before rdman being initialized. But, initialization would clear full block of memory. So, they should be assigned after initialization.
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 08 Apr 2011 09:47:00 +0800
parents 41190d180b97
children d82a828e8e26
files src/X_supp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/X_supp.c	Thu Apr 07 22:27:19 2011 +0800
+++ b/src/X_supp.c	Fri Apr 08 09:47:00 2011 +0800
@@ -849,9 +849,9 @@
     xmb_rt->backend_cr = mbe_create(xmb_rt->backend_surface);
     
     xmb_rt->rdman = (redraw_man_t *)malloc(sizeof(redraw_man_t));
+    redraw_man_init(xmb_rt->rdman, xmb_rt->cr, xmb_rt->backend_cr);
     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
      *        animation. We should relocate the tman to the