comparison src/X_supp.c @ 594:d416e1fff71a openvg

Fix bug of mbe_copy_source() of cairo. Must install pattern as source on target canvas instead of source canvas.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 30 Jun 2010 23:15:42 +0800
parents c9d23f7279a4
children e4138c12fa8c
comparison
equal deleted inserted replaced
593:ac942664fe86 594:d416e1fff71a
482 w, h); 482 w, h);
483 483
484 xmb_rt->cr = mbe_create(xmb_rt->surface); 484 xmb_rt->cr = mbe_create(xmb_rt->surface);
485 xmb_rt->backend_cr = mbe_create(xmb_rt->backend_surface); 485 xmb_rt->backend_cr = mbe_create(xmb_rt->backend_surface);
486 486
487 /* TODO: Remove this line. Since we use mbe_copy_source(), it
488 * will set source for the backend. So, this line is redundants.
489 * It can be removed. sourface_ptn can be removed, too.
490 */
487 mbe_set_source(xmb_rt->backend_cr, xmb_rt->surface_ptn); 491 mbe_set_source(xmb_rt->backend_cr, xmb_rt->surface_ptn);
488 492
489 xmb_rt->rdman = (redraw_man_t *)malloc(sizeof(redraw_man_t)); 493 xmb_rt->rdman = (redraw_man_t *)malloc(sizeof(redraw_man_t));
490 redraw_man_init(xmb_rt->rdman, xmb_rt->cr, xmb_rt->backend_cr); 494 redraw_man_init(xmb_rt->rdman, xmb_rt->cr, xmb_rt->backend_cr);
491 // FIXME: This is a wired loopback reference. This is inly required when we need 495 // FIXME: This is a wired loopback reference. This is inly required when we need