comparison src/X_supp.c @ 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 673978a8bc4b
children 74635b07a83a
comparison
equal deleted inserted replaced
1420:41190d180b97 1421:84368f4bc988
847 847
848 xmb_rt->cr = mbe_create(xmb_rt->surface); 848 xmb_rt->cr = mbe_create(xmb_rt->surface);
849 xmb_rt->backend_cr = mbe_create(xmb_rt->backend_surface); 849 xmb_rt->backend_cr = mbe_create(xmb_rt->backend_surface);
850 850
851 xmb_rt->rdman = (redraw_man_t *)malloc(sizeof(redraw_man_t)); 851 xmb_rt->rdman = (redraw_man_t *)malloc(sizeof(redraw_man_t));
852 redraw_man_init(xmb_rt->rdman, xmb_rt->cr, xmb_rt->backend_cr);
852 xmb_rt->rdman->w = w; 853 xmb_rt->rdman->w = w;
853 xmb_rt->rdman->h = h; 854 xmb_rt->rdman->h = h;
854 redraw_man_init(xmb_rt->rdman, xmb_rt->cr, xmb_rt->backend_cr);
855 /* FIXME: This is a wired loopback reference. This is inly 855 /* FIXME: This is a wired loopback reference. This is inly
856 * required when we need to get the xmb_rt->tman for the 856 * required when we need to get the xmb_rt->tman for the
857 * animation. We should relocate the tman to the 857 * animation. We should relocate the tman to the
858 * redraw_man_t instead. 858 * redraw_man_t instead.
859 */ 859 */