comparison src/X_supp.c @ 270:cd6af7da32c9

Fix the problem that clean_canvas() can not clean canvas cleanly. - For some unknown reasons, cairo_paint() can not clean painted graphics cleanly. - Use cairo_rectangle() and cairo_fill() to replace cairo_paint().
author Thinker K.F. Li <thinker@branda.to>
date Sun, 25 Jan 2009 16:07:43 +0800
parents b42ee279669e
children b391722bf20e
comparison
equal deleted inserted replaced
269:c96f38ad4bb6 270:cd6af7da32c9
447 redraw_man_init(xmb_rt->rdman, xmb_rt->cr, xmb_rt->backend_cr); 447 redraw_man_init(xmb_rt->rdman, xmb_rt->cr, xmb_rt->backend_cr);
448 // FIXME: This is a wired loopback reference. This is inly required when we need 448 // FIXME: This is a wired loopback reference. This is inly required when we need
449 // to get the xmb_rt->tman for the animation. We should relocate the tman 449 // to get the xmb_rt->tman for the animation. We should relocate the tman
450 // to the redraw_man_t instead. 450 // to the redraw_man_t instead.
451 xmb_rt->rdman->rt = xmb_rt; 451 xmb_rt->rdman->rt = xmb_rt;
452 xmb_rt->rdman->w = w;
453 xmb_rt->rdman->h = h;
452 454
453 xmb_rt->tman = mb_tman_new(); 455 xmb_rt->tman = mb_tman_new();
454 456
455 img_ldr = simple_mb_img_ldr_new("./"); 457 img_ldr = simple_mb_img_ldr_new("./");
456 xmb_rt->img_ldr = img_ldr; 458 xmb_rt->img_ldr = img_ldr;