From 915f35240014cfdafb6d247acb5e032d7c1204bf Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Tue, 8 Dec 2009 08:44:18 +0000 Subject: ImBuf: Fix bug in clipping --- source/blender/imbuf/intern/rectop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/imbuf/intern') diff --git a/source/blender/imbuf/intern/rectop.c b/source/blender/imbuf/intern/rectop.c index 56714c3b481..080340750e4 100644 --- a/source/blender/imbuf/intern/rectop.c +++ b/source/blender/imbuf/intern/rectop.c @@ -277,7 +277,7 @@ void IMB_rectclip(struct ImBuf *dbuf, struct ImBuf *sbuf, int *destx, } if (*srcx < 0) { *destx -= *srcx; - *width += *destx; + *width += *srcx; *srcx = 0; } if (*desty < 0) { @@ -287,7 +287,7 @@ void IMB_rectclip(struct ImBuf *dbuf, struct ImBuf *sbuf, int *destx, } if (*srcy < 0) { *desty -= *srcy; - *height += *desty; + *height += *srcy; *srcy = 0; } -- cgit v1.2.3