small thing - internal path. onebuf mode was broken, make it work

again. only useful if explicitly turned on in code which is it snt atm.



SVN revision: 77034
This commit is contained in:
Carsten Haitzler 2012-09-24 08:09:33 +00:00
parent 06bb70765e
commit 012301b7f6
2 changed files with 4 additions and 2 deletions

View File

@ -259,7 +259,8 @@ evas_software_xcb_outbuf_new_region_for_update(Outbuf *buf, int x, int y, int w,
return NULL;
}
if (!eina_array_push(&buf->priv.onebuf_regions, rect))
if ((eina_array_push(&buf->priv.onebuf_regions, rect)) &&
(buf->priv.onebuf))
{
if (cx) *cx = x;
if (cy) *cy = y;

View File

@ -382,7 +382,8 @@ evas_software_xlib_outbuf_new_region_for_update(Outbuf *buf, int x, int y, int w
return NULL;
}
if (!eina_array_push(&buf->priv.onebuf_regions, rect))
if ((eina_array_push(&buf->priv.onebuf_regions, rect)) &&
(buf->priv.onebuf))
{
*cx = x;
*cy = y;