Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common
Modified Files:
evas_convert_rgb_8.c
Log Message:
and 666 dithering was arse. fixed.
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_convert_rgb_8.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evas_convert_rgb_8.c 3 Dec 2003 05:07:12 -0000 1.4
+++ evas_convert_rgb_8.c 3 Dec 2003 05:22:21 -0000 1.5
@@ -15,7 +15,8 @@
int x, y;
DATA8 r, g, b;
DATA8 dith, dith2;
-
+
+ printf("D 332\n");
dst_ptr = (DATA8 *)dst;
CONVERT_LOOP_START_ROT_0();
@@ -59,9 +60,9 @@
tables_calcualted = 1;
for (i = 0; i < 256; i++)
- p_to_6[i] = (i * 6) / 256;
+ p_to_6[i] = (i * 5) / 255;
for (i = 0; i < 256; i++)
- p_to_6_err[i] = ((i * 6) - (p_to_6[i] * 256)) * DM_DIV / 256;
+ p_to_6_err[i] = ((i * 5) - (p_to_6[i] * 255)) * DM_DIV / 255;
}
dst_ptr = (DATA8 *)dst;
-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs