Mercurial > MadButterfly
comparison src/X_supp.c @ 755:82836f1290b6
Remove cairo_* and use mbe_*
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Thu, 26 Aug 2010 13:54:53 +0800 |
parents | 7e64e0f70cb6 |
children | cceac4ba259e |
comparison
equal
deleted
inserted
replaced
754:86f2c0fbadfc | 755:82836f1290b6 |
---|---|
566 case 24: surf_fmt = CAIRO_FORMAT_RGB24; break; | 566 case 24: surf_fmt = CAIRO_FORMAT_RGB24; break; |
567 case 32: surf_fmt = CAIRO_FORMAT_ARGB32; break; | 567 case 32: surf_fmt = CAIRO_FORMAT_ARGB32; break; |
568 } | 568 } |
569 | 569 |
570 xmb_rt->backend_surface = | 570 xmb_rt->backend_surface = |
571 cairo_image_surface_create_for_data(ximage->data, | 571 mbe_image_surface_create_for_data(ximage->data, |
572 surf_fmt, | 572 surf_fmt, |
573 xmb_rt->w, | 573 xmb_rt->w, |
574 xmb_rt->h, | 574 xmb_rt->h, |
575 ximage->bytes_per_line); | 575 ximage->bytes_per_line); |
576 if(xmb_rt->backend_surface == NULL) | 576 if(xmb_rt->backend_surface == NULL) |
577 xshm_destroy(xmb_rt); | 577 xshm_destroy(xmb_rt); |
578 } | 578 } |
579 #endif /* XSHM */ | 579 #endif /* XSHM */ |
580 | 580 |