From: dooglus Date: Tue, 4 Sep 2007 16:10:32 +0000 (+0000) Subject: The duck was moving the XOR pattern in the wrong direction. Fixed it. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8fb13329e9e9caf813bd814c2a49b098a5623571;p=synfig.git The duck was moving the XOR pattern in the wrong direction. Fixed it. git-svn-id: http://svn.voria.com/code@592 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/lyr_std/xorpattern.cpp b/synfig-core/trunk/src/modules/lyr_std/xorpattern.cpp index 7379be8..cbbfe56 100644 --- a/synfig-core/trunk/src/modules/lyr_std/xorpattern.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/xorpattern.cpp @@ -88,7 +88,7 @@ XORPattern::get_param(const String & param)const Color XORPattern::get_color(Context context, const Point &point)const { - unsigned int a=(unsigned int)floor((point[0]+pos[0])/size[0]), b=(unsigned int)floor((point[1]+pos[1])/size[1]); + unsigned int a=(unsigned int)floor((point[0]-pos[0])/size[0]), b=(unsigned int)floor((point[1]-pos[1])/size[1]); unsigned char rindex=(a^b); unsigned char gindex=(a^(~b))*4; unsigned char bindex=~(a^b)*2;