aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-07-29 14:17:39 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-07-29 14:17:39 +0200
commit620d0031dec70f06a2bfa004583eae656bfd3c7c (patch)
treeb5510efa49af4f566903cd11fd7bcb400cb2f592
parentelm: object_item: add guards to include eo and legacy header only when allowed (diff)
downloadefl-620d0031dec70f06a2bfa004583eae656bfd3c7c.tar.gz
evas: xcb: fix build break of xcb engine
This was broken since commit ed2e78286b351cd8c3e85e1f6b92f25a54fab027 The variable is named differently in the xlib vs. xcb code
-rw-r--r--src/modules/evas/engines/software_x11/evas_xcb_outbuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/evas/engines/software_x11/evas_xcb_outbuf.c b/src/modules/evas/engines/software_x11/evas_xcb_outbuf.c
index 70219828a1..b747f640a3 100644
--- a/src/modules/evas/engines/software_x11/evas_xcb_outbuf.c
+++ b/src/modules/evas/engines/software_x11/evas_xcb_outbuf.c
@@ -47,7 +47,7 @@ void
evas_software_xcb_outbuf_free(Outbuf *buf)
{
SHMPOOL_LOCK();
- shmmemlimit -= ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
+ _shmlimit -= ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
SHMPOOL_UNLOCK();
eina_spinlock_take(&(buf->priv.lock));
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));
SHMPOOL_LOCK();
- shmmemlimit += ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
+ _shmlimit += ((buf->w * buf->h * (buf->depth / 8)) * 3) / 2;
SHMPOOL_UNLOCK();
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) &&
(depth == buf->depth)) return;
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->h = h;
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();
evas_software_xcb_outbuf_idle_flush(buf);
}