From 8fb13329e9e9caf813bd814c2a49b098a5623571 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 4 Sep 2007 16:10:32 +0000 Subject: [PATCH] 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 --- synfig-core/trunk/src/modules/lyr_std/xorpattern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4