From: Jean-Philippe Andre Date: Fri, 1 Nov 2013 05:44:07 +0000 (+0900) Subject: evas/x11: Fix Xlib swapper buffer size X-Git-Tag: v1.8.0-alpha1~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3eb8d2e9d42a83c633d19196d28f3c621522dc5;p=platform%2Fupstream%2Fefl.git evas/x11: Fix Xlib swapper buffer size Problem: Software engine fails to render on Tizen device. --- diff --git a/src/modules/evas/engines/software_x11/evas_xlib_swapper.c b/src/modules/evas/engines/software_x11/evas_xlib_swapper.c index 705f077..81383eb 100644 --- a/src/modules/evas/engines/software_x11/evas_xlib_swapper.c +++ b/src/modules/evas/engines/software_x11/evas_xlib_swapper.c @@ -698,6 +698,8 @@ evas_xlib_swapper_buffer_map(X_Swapper *swp, int *bpl, int *w, int *h) if ((swp->buf) && (swp->buf->pitch > 0)) *bpl = swp->buf->pitch; else *bpl = swp->w * 4; } + if (w) *w = swp->w; + if (h) *h = swp->h; return swp->buf_data; } swp->buf = sym_DRI2GetBuffers(swp->disp, swp->draw,