From a9a11f020f0731c3ef5d82d0426b3e1bfbfbf998 Mon Sep 17 00:00:00 2001 From: Louai Al-Khanji Date: Tue, 24 Nov 2015 12:46:26 -0800 Subject: [PATCH] QBlitterPaintEngine: Fix capability mask settings The scaling bit was being set incorrectly in two ways. First, the two flags SourceOverPixmapCapability and SourceOverScaledPixmapCapability where being confused. Second, the scaling bit was being set on the wrong mask. Change-Id: I4bed44f8bb82f153bc35ad2b580d33b8b6f11f89 Reviewed-by: Laszlo Agocs --- src/gui/painting/qpaintengine_blitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/painting/qpaintengine_blitter.cpp b/src/gui/painting/qpaintengine_blitter.cpp index a2bab58922..aa4a609d6c 100644 --- a/src/gui/painting/qpaintengine_blitter.cpp +++ b/src/gui/painting/qpaintengine_blitter.cpp @@ -190,7 +190,7 @@ private: } void setSourcePixmapMask() { - updateStateBits(&drawPixmapMask, STATE_XFORM_SCALE, true); + updateStateBits(&drawPixmapMask, STATE_XFORM_SCALE, false); updateStateBits(&drawPixmapMask, STATE_XFORM_COMPLEX, false); updateStateBits(&drawPixmapMask, STATE_BRUSH_PATTERN, true); @@ -212,7 +212,7 @@ private: void setSourceOverScaledPixmapMask() { setSourceOverPixmapMask(); - updateStateBits(&drawRectMask, STATE_XFORM_SCALE, true); + updateStateBits(&drawPixmapMask, STATE_XFORM_SCALE, true); } void setOpacityPixmapMask() {