swapper -> use buf pitch, not swp->w * 4 ... if we have a buf and

pitch. :) (tnks wonsik!)



SVN revision: 83889
This commit is contained in:
Carsten Haitzler 2013-02-14 10:39:59 +00:00
parent 7c6f9a36fe
commit f4da5922d3
1 changed files with 5 additions and 1 deletions

View File

@ -688,7 +688,11 @@ evas_xlib_swapper_buffer_map(X_Swapper *swp, int *bpl, int *w, int *h)
if (swp->mapped)
{
if (bpl) *bpl = swp->w * 4;
if (bpl)
{
if ((swp->buf) && (swp->buf->pitch > 0)) *bpl = swp->buf->pitch;
else *bpl = swp->w * 4;
}
return swp->buf_data;
}
swp->buf = sym_DRI2GetBuffers(swp->disp, swp->draw,