forked from enlightenment/efl
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:
parent
7c6f9a36fe
commit
f4da5922d3
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue