mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 08:56:01 +02:00
Qt: scale unclipped if sizes are different
git-svn-id: trunk@62918 -
This commit is contained in:
parent
610245564b
commit
a7403ac9d7
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user