From a7403ac9d76b5710d08c58ea28b65d02771932b2 Mon Sep 17 00:00:00 2001 From: zeljko Date: Thu, 9 Apr 2020 09:49:24 +0000 Subject: [PATCH] Qt: scale unclipped if sizes are different git-svn-id: trunk@62918 - --- lcl/interfaces/qt/qtwinapi.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcl/interfaces/qt/qtwinapi.inc b/lcl/interfaces/qt/qtwinapi.inc index e5055ee6b0..5310a6b21c 100644 --- a/lcl/interfaces/qt/qtwinapi.inc +++ b/lcl/interfaces/qt/qtwinapi.inc @@ -6868,8 +6868,8 @@ var if NeedScaling(DstRect, SrcRect) then QPixmap_scaled(APixmap, ATempPixmap, Width, Height) else - if (Width <> SrcWidth) or (Height <> SrcHeight) then - QPixmap_copy(APixmap, ATempPixmap, 0, 0, Width, Height) + if ((Width <> SrcWidth) or (Height <> SrcHeight)) then + QPixmap_scaled(APixmap, ATempPixmap, Width, Height) else QPixmap_copy(APixmap, ATempPixmap, 0, 0, QPixmap_width(APixmap), QPixmap_height(APixmap));