Bugfix: scaling images anti-aliased with either the width or height

staying the same did not work correct (showed up in the sequencer).
This commit is contained in:
Brecht Van Lommel
2008-04-09 17:14:02 +00:00
parent 906666a4d8
commit ec1262944e

View File

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