Qt: scale unclipped if sizes are different

git-svn-id: trunk@62918 -
This commit is contained in:
zeljko 2020-04-09 09:49:24 +00:00
parent 610245564b
commit a7403ac9d7

View File

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