r3075 - in trunk/src/target/OM-2007.2/libraries/moko-gtk-engine: . src
chris at sita.openmoko.org
chris at sita.openmoko.org
Wed Oct 3 14:30:31 CEST 2007
Author: chris
Date: 2007-10-03 14:30:29 +0200 (Wed, 03 Oct 2007)
New Revision: 3075
Modified:
trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/ChangeLog
trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/src/moko-draw.c
Log:
Shift the offset to make the pattern less uniform-looking
Modified: trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/ChangeLog 2007-10-02 16:39:07 UTC (rev 3074)
+++ trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/ChangeLog 2007-10-03 12:30:29 UTC (rev 3075)
@@ -1,3 +1,8 @@
+2007-10-03 Chris Lord <chris at openedhand.com>
+
+ * src/moko-draw.c: (moko_dither16):
+ Shift the offset to make the pattern less uniform-looking
+
2007-10-02 Chris Lord <chris at openedhand.com>
* src/moko-draw.c: (moko_dither16), (moko_gradient):
Modified: trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/src/moko-draw.c
===================================================================
--- trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/src/moko-draw.c 2007-10-02 16:39:07 UTC (rev 3074)
+++ trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/src/moko-draw.c 2007-10-03 12:30:29 UTC (rev 3075)
@@ -73,10 +73,10 @@
sum = (c1d.red + c1d.green + c1d.blue) >> 8;
gdk_gc_set_function (gcd, GDK_SET);
- gdk_draw_rectangle (dither, gcd, TRUE, 0, 0, 17, 1);
+ gdk_draw_line (dither, gcd, 0, 0, 17, 0);
gdk_gc_set_function (gcd, GDK_CLEAR);
for (x = 0; x < sum; x ++) {
- gdk_draw_point (dither, gcd, ((x+i) * 11) % 18, 0);
+ gdk_draw_point (dither, gcd, ((x+(i<<3)) * 11) % 18, 0);
}
c1d.red = c1->red + 0x800;
More information about the commitlog
mailing list