evas/x11: Fix Xlib swapper buffer size
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 1 Nov 2013 05:44:07 +0000 (14:44 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 4 Nov 2013 01:35:26 +0000 (10:35 +0900)
Problem: Software engine fails to render on Tizen device.

src/modules/evas/engines/software_x11/evas_xlib_swapper.c

index 705f077..81383eb 100644 (file)
@@ -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,