Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/software_x11
Modified Files:
evas_x_buffer.c
Log Message:
dont overrun mask buffers!
===================================================================
RCS file:
/cvs/e/e17/libs/evas/src/modules/engines/software_x11/evas_x_buffer.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evas_x_buffer.c 21 Oct 2006 10:28:01 -0000 1.4
+++ evas_x_buffer.c 12 Jun 2007 13:12:17 -0000 1.5
@@ -14,6 +14,7 @@
src_ptr = src;
dst_ptr = evas_software_x11_x_output_buffer_data(xob, &bpl);
dst_ptr = dst_ptr + (bpl * y);
+ w -= 7;
if (buf->priv.x.bit_swap)
{
for (x = 0; x < w; x += 8)
@@ -48,6 +49,7 @@
dst_ptr++;
}
}
+ w += 7;
for (; x < w; x ++)
{
XPutPixel(xob->xim, x, y, A_VAL(src_ptr) >> 7);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs