Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-12-08 11:44:18 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2009-12-08 11:44:18 +0300
commit915f35240014cfdafb6d247acb5e032d7c1204bf (patch)
tree7150a8a24ba1acc106c00f286f6e49052527896e /source/blender/imbuf/intern/rectop.c
parent81a69bb00fede01ec02750f2d4b093ac9d1f7d55 (diff)
ImBuf: Fix bug in clipping
Diffstat (limited to 'source/blender/imbuf/intern/rectop.c')
-rw-r--r--source/blender/imbuf/intern/rectop.c4
1 files changed, 2 insertions, 2 deletions
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;
}