comparison src/X_supp.c @ 249:ab8284c8dcee

* Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman. * Remove reference to the MBApp from the mb_button_t so that it will be easier for us to generate button inside the sprite.
author wycc
date Sun, 04 Jan 2009 09:32:49 +0800
parents 29e1b2bffe4c
children e8a784a306d0
comparison
equal deleted inserted replaced
248:1958bb2a87a2 249:ab8284c8dcee
440 440
441 cairo_set_source_surface(xmb_rt->backend_cr, xmb_rt->surface, 0, 0); 441 cairo_set_source_surface(xmb_rt->backend_cr, xmb_rt->surface, 0, 0);
442 442
443 xmb_rt->rdman = (redraw_man_t *)malloc(sizeof(redraw_man_t)); 443 xmb_rt->rdman = (redraw_man_t *)malloc(sizeof(redraw_man_t));
444 redraw_man_init(xmb_rt->rdman, xmb_rt->cr, xmb_rt->backend_cr); 444 redraw_man_init(xmb_rt->rdman, xmb_rt->cr, xmb_rt->backend_cr);
445 // FIXME: This is a wired loopback reference. This is inly required when we need
446 // to get the xmb_rt->tman for the animation. We should relocate the tman
447 // to the redraw_man_t instead.
448 xmb_rt->rdman->rt = xmb_rt;
445 449
446 xmb_rt->tman = mb_tman_new(); 450 xmb_rt->tman = mb_tman_new();
447 451
448 #ifndef ONLY_MOUSE_MOVE_RAW 452 #ifndef ONLY_MOUSE_MOVE_RAW
449 xmb_rt->last = NULL; 453 xmb_rt->last = NULL;