Mercurial > MadButterfly
diff src/X_supp.c @ 1519:74635b07a83a
Porting Skia backend to latest version and with X
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 17 May 2011 12:17:15 +0800 |
parents | 84368f4bc988 |
children |
line wrap: on
line diff
--- a/src/X_supp.c Sat May 14 12:20:57 2011 +0800 +++ b/src/X_supp.c Tue May 17 12:17:15 2011 +0800 @@ -745,8 +745,8 @@ XShmAttach(display, shminfo); switch(depth) { - case 24: surf_fmt = CAIRO_FORMAT_RGB24; break; - case 32: surf_fmt = CAIRO_FORMAT_ARGB32; break; + case 24: surf_fmt = MB_IFMT_RGB24; break; + case 32: surf_fmt = MB_IFMT_ARGB32; break; } xmb_rt->backend_surface = @@ -843,6 +843,7 @@ xmb_rt->win, fmt, w, h); + ASSERT(xmb_rt->backend_surface != NULL); } xmb_rt->cr = mbe_create(xmb_rt->surface);