From 398ef0ca2962187703dcc3171fc265c3eb7bec97 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Tue, 17 Aug 2010 16:14:27 +0200 Subject: Fix nasty copy-paste bug in fetchTransformedBilinear() Introduced in commit 0d7e68391 Reviewed-by: Samuel --- src/gui/painting/qdrawhelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp index eb92d3f..054f96f 100644 --- a/src/gui/painting/qdrawhelper.cpp +++ b/src/gui/painting/qdrawhelper.cpp @@ -856,7 +856,7 @@ const uint * QT_FASTCALL fetchTransformedBilinear(uint *buffer, const Operator * while (b < end) { int x1 = (fx >> 16); int x2; - fetchTransformedBilinear_pixelBounds(image_height, image_x1, image_x2, x1, x2); + fetchTransformedBilinear_pixelBounds(image_width, image_x1, image_x2, x1, x2); uint tl = fetch(s1, x1, data->texture.colorTable); uint tr = fetch(s1, x2, data->texture.colorTable); uint bl = fetch(s2, x1, data->texture.colorTable); @@ -883,7 +883,7 @@ const uint * QT_FASTCALL fetchTransformedBilinear(uint *buffer, const Operator * while (b < end) { int x1 = (fx >> 16); int x2; - fetchTransformedBilinear_pixelBounds(image_height, image_x1, image_x2, x1, x2); + fetchTransformedBilinear_pixelBounds(image_width, image_x1, image_x2, x1, x2); uint tl = fetch(s1, x1, data->texture.colorTable); uint tr = fetch(s1, x2, data->texture.colorTable); uint bl = fetch(s2, x1, data->texture.colorTable); -- cgit v0.12