-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 9 Dec 2005, David Sharp wrote:
Hey Raster,
There were only a three, and you already committed the two in
evas_blend_color_pixel.c. You "Buggered off to Egpyt" before i found
there was only one more though. so, here's the 4-line patch for the
last one i found.
I'm pretty sure that's all of them, since i just grep'd for all ++'s,
as well as tried to use some fancy regular expressions to narrow down
the search a bit.
d#
just inlining it here, since it'll probably be easier to hand-patch it:
Index: evas_blend_pixel_pixel.c
===================================================================
RCS file: /root/e17/libs/evas/src/lib/engines/common/evas_blend_pixel_pixel.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 evas_blend_pixel_pixel.c
--- evas_blend_pixel_pixel.c 3 Dec 2005 09:35:21 -0000 1.1.1.3
+++ evas_blend_pixel_pixel.c 9 Dec 2005 09:44:58 -0000
@@ -109,7 +109,9 @@
DATA32 *dst_end = dst + len;
while (dst < dst_end)
- *dst++ = (*src++ | PIXEL_SOLID_ALPHA) & (*dst | 0x00ffffff);
+ *dst = (*src | PIXEL_SOLID_ALPHA) & (*dst | 0x00ffffff);
+ dst++;
+ src++;
}
void
Shouldn't pre-increment (e.g. ++dst) be used instead of post-increment
(e.g. dst++) as the post-increment in C, IIRC, requires the object to
be copied, incremented, and then reassigned, whereas the pre-increment
just increments without all the copying and reassigning.
- -sandalle
- --
Eric Sandall | Source Mage GNU/Linux Developer
[EMAIL PROTECTED] | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDnx38HXt9dKjv3WERAlJcAKChvO1r9KvPUorfPqw9wBk6nmGLuQCgpekv
t5BHBKOCzmj6Ds27gyZoQVo=
=xflA
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel