forked from enlightenment/efl
evas: xcb: fix build break of xcb engine
This was broken since commit ed2e78286b
The variable is named differently in the xlib vs. xcb code
This commit is contained in:
parent
61edc87787
commit
620d0031de
|
@ -47,7 +47,7 @@ void
|
||||||
evas_software_xcb_outbuf_free(Outbuf *buf)
|
evas_software_xcb_outbuf_free(Outbuf *buf)
|
||||||
{
|
{
|
||||||
SHMPOOL_LOCK();
|
SHMPOOL_LOCK();
|
||||||
shmmemlimit -= ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
|
_shmlimit -= ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
|
||||||
SHMPOOL_UNLOCK();
|
SHMPOOL_UNLOCK();
|
||||||
eina_spinlock_take(&(buf->priv.lock));
|
eina_spinlock_take(&(buf->priv.lock));
|
||||||
while (buf->priv.pending_writes)
|
while (buf->priv.pending_writes)
|
||||||
|
@ -267,7 +267,7 @@ evas_software_xcb_outbuf_setup(int w, int h, int rot, Outbuf_Depth depth, xcb_co
|
||||||
eina_spinlock_new(&(buf->priv.lock));
|
eina_spinlock_new(&(buf->priv.lock));
|
||||||
|
|
||||||
SHMPOOL_LOCK();
|
SHMPOOL_LOCK();
|
||||||
shmmemlimit += ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
|
_shmlimit += ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
|
||||||
SHMPOOL_UNLOCK();
|
SHMPOOL_UNLOCK();
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
@ -1019,11 +1019,11 @@ evas_software_xcb_outbuf_reconfigure(Outbuf *buf, int w, int h, int rot, Outbuf_
|
||||||
if ((w == buf->w) && (h == buf->h) && (rot == buf->rot) &&
|
if ((w == buf->w) && (h == buf->h) && (rot == buf->rot) &&
|
||||||
(depth == buf->depth)) return;
|
(depth == buf->depth)) return;
|
||||||
SHMPOOL_LOCK();
|
SHMPOOL_LOCK();
|
||||||
shmmemlimit -= ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
|
_shmlimit -= ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
|
||||||
buf->w = w;
|
buf->w = w;
|
||||||
buf->h = h;
|
buf->h = h;
|
||||||
buf->rot = rot;
|
buf->rot = rot;
|
||||||
shmmemlimit += ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
|
_shmlimit += ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
|
||||||
SHMPOOL_UNLOCK();
|
SHMPOOL_UNLOCK();
|
||||||
evas_software_xcb_outbuf_idle_flush(buf);
|
evas_software_xcb_outbuf_idle_flush(buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue