Mercurial > MadButterfly
comparison src/X_supp.c @ 626:e4138c12fa8c openvg
Call mbe_vg_win_surface_create() in X_supp.c when with OpenVG
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 16 Jul 2010 16:39:53 +0800 |
parents | d416e1fff71a |
children | bd18951b51d5 |
comparison
equal
deleted
inserted
replaced
622:39bd74da7f92 | 626:e4138c12fa8c |
---|---|
473 mbe_image_surface_create(MB_IFMT_ARGB32, w, h); | 473 mbe_image_surface_create(MB_IFMT_ARGB32, w, h); |
474 | 474 |
475 xmb_rt->surface_ptn = | 475 xmb_rt->surface_ptn = |
476 mbe_pattern_create_for_surface(xmb_rt->surface); | 476 mbe_pattern_create_for_surface(xmb_rt->surface); |
477 | 477 |
478 #ifdef OPENVG_GRAPH_ENGINE | |
479 xmb_rt->backend_surface = | |
480 mbe_vg_win_surface_create(xmb_rt->display, | |
481 xmb_rt->win, | |
482 xmb_rt->visual, | |
483 w, h); | |
484 #else | |
478 xmb_rt->backend_surface = | 485 xmb_rt->backend_surface = |
479 mbe_xlib_surface_create(xmb_rt->display, | 486 mbe_xlib_surface_create(xmb_rt->display, |
480 xmb_rt->win, | 487 xmb_rt->win, |
481 xmb_rt->visual, | 488 xmb_rt->visual, |
482 w, h); | 489 w, h); |
490 #endif | |
483 | 491 |
484 xmb_rt->cr = mbe_create(xmb_rt->surface); | 492 xmb_rt->cr = mbe_create(xmb_rt->surface); |
485 xmb_rt->backend_cr = mbe_create(xmb_rt->backend_surface); | 493 xmb_rt->backend_cr = mbe_create(xmb_rt->backend_surface); |
486 | 494 |
487 /* TODO: Remove this line. Since we use mbe_copy_source(), it | 495 /* TODO: Remove this line. Since we use mbe_copy_source(), it |