From 89d5491bdb6d12b6b3f197c69f03df1ee2885c34 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 2 Aug 2020 21:38:12 +0300 Subject: [PATCH] move variable closer to the scope it is used in in blendUntransformed() Signed-off-by: Ivailo Monev --- src/gui/painting/qdrawhelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp index 62bff9c9c..e5263a07d 100644 --- a/src/gui/painting/qdrawhelper.cpp +++ b/src/gui/painting/qdrawhelper.cpp @@ -3027,8 +3027,8 @@ static void QT_FASTCALL blendUntransformed(qrgb565 *dest, const qrgb565 *src, Q_ASSERT(coverage > 0 && coverage < 255); const quint8 alpha = qrgb565::alpha(coverage); - const quint8 ialpha = qrgb565::ialpha(coverage); if (alpha) { + const quint8 ialpha = qrgb565::ialpha(coverage); for (int i = 0; i < length; ++i) interpolate_pixel(dest[i], ialpha, src[i], alpha); } -- 2.11.0