# HG changeset patch # User Thinker K.F. Li # Date 1302227220 -28800 # Node ID 84368f4bc98847610ba50dff0c733cb84ce61ba6 # Parent 41190d180b979707c708fbebbe1b39efb706c239 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. diff -r 41190d180b97 -r 84368f4bc988 src/X_supp.c --- 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