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:
authorTon Roosendaal <ton@blender.org>2006-03-09 14:25:20 +0300
committerTon Roosendaal <ton@blender.org>2006-03-09 14:25:20 +0300
commit89fe29055ba219dcc0b6d5b6c7bdf03c60f9fa56 (patch)
tree9476470f41e4fcfdf69a66162ad147769551f92b /source/blender/imbuf/intern/scaling.c
parentef346ebd33600fb58e69c547af7f3d6bcf94abcb (diff)
When imbuf has both float and byte rects, the scale-fast function crashed.
Diffstat (limited to 'source/blender/imbuf/intern/scaling.c')
-rw-r--r--source/blender/imbuf/intern/scaling.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c
index 8db51f50ee0..5b6eb4aed97 100644
--- a/source/blender/imbuf/intern/scaling.c
+++ b/source/blender/imbuf/intern/scaling.c
@@ -972,6 +972,7 @@ struct ImBuf *IMB_scalefastImBuf(struct ImBuf *ibuf, short newx, short newy)
}
if (do_float) {
+ ofsx = 32768;
for (x = newx ; x>0 ; x--){
*newrectf++ = rectf[ofsx >> 16];
ofsx += stepx;