ImBuf: Fix bug in clipping

This commit is contained in:
Benoit Bolsee 2009-12-08 08:44:18 +00:00
parent 81a69bb00f
commit 915f352400
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}