From 327d413eb3c0c4cf07b71903eaa27e784be172c3 Mon Sep 17 00:00:00 2001 From: Peter Schlaile Date: Tue, 7 Mar 2006 20:01:12 +0000 Subject: this patch features several cleanups and bugfixes for the sequencer: - blur works again (this was a serious bug in gamwarp...) - seperates all sequence effects into a seperate file with a clean interface - thereby fixing some obscure segfaults - seperates the scope views into a seperate file - adds float support to all effects and scope views - removes a bad level call to open_plugin_seq - FFMPEG seeking improved a lot. - FFMPEG compiles with debian sarge version cleanly - Makes hdaudio seek and resample code really work --- source/blender/imbuf/intern/scaling.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'source/blender/imbuf/intern/scaling.c') diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c index c962f1fbde5..8db51f50ee0 100644 --- a/source/blender/imbuf/intern/scaling.c +++ b/source/blender/imbuf/intern/scaling.c @@ -964,10 +964,18 @@ struct ImBuf *IMB_scalefastImBuf(struct ImBuf *ibuf, short newx, short newy) ofsy += stepy; ofsx = 32768; - for (x = newx ; x>0 ; x--){ - if (do_rect) *newrect++ = rect[ofsx >> 16]; - if (do_float) *newrectf++ = rectf[ofsx >> 16]; - ofsx += stepx; + if (do_rect) { + for (x = newx ; x>0 ; x--){ + *newrect++ = rect[ofsx >> 16]; + ofsx += stepx; + } + } + + if (do_float) { + for (x = newx ; x>0 ; x--){ + *newrectf++ = rectf[ofsx >> 16]; + ofsx += stepx; + } } } -- cgit v1.2.3