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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-04-09 21:14:02 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-04-09 21:14:02 +0400
commitec1262944efd9689e52be8508208e41f28179dca (patch)
tree48b160afb4a1419630843f2e203e4a23d9404066 /source/blender/imbuf
parent906666a4d87b7812e0945acb5803be3ca43fcdbb (diff)
Bugfix: scaling images anti-aliased with either the width or height
staying the same did not work correct (showed up in the sequencer).
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/scaling.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c
index 80731213140..ea3cc59b554 100644
--- a/source/blender/imbuf/intern/scaling.c
+++ b/source/blender/imbuf/intern/scaling.c
@@ -915,8 +915,8 @@ static void q_scale_float(float* in, float* out, int in_width,
static int q_scale_linear_interpolation(
struct ImBuf *ibuf, int newx, int newy)
{
- if ((newx > ibuf->x && newy < ibuf->y) ||
- (newx < ibuf->x && newy > ibuf->y)) {
+ if ((newx >= ibuf->x && newy <= ibuf->y) ||
+ (newx <= ibuf->x && newy >= ibuf->y)) {
return FALSE;
}