mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 03:19:17 +02:00
lcl: forma: change wParamhi to hi(wParam), issue #31043
git-svn-id: trunk@53502 -
This commit is contained in:
parent
f4df715ad3
commit
5c4c3d1948
@ -2249,10 +2249,10 @@ procedure TCustomForm.WMDPIChanged(var Msg: TLMessage);
|
|||||||
begin
|
begin
|
||||||
if Parent=nil then
|
if Parent=nil then
|
||||||
begin
|
begin
|
||||||
if Scaled and (Msg.wParamhi<>PixelsPerInch) then
|
if Scaled and (hi(Msg.wParam)<>PixelsPerInch) then
|
||||||
begin
|
begin
|
||||||
ScaleBy(Msg.wParamhi, PixelsPerInch);
|
ScaleBy(hi(Msg.wParam), PixelsPerInch);
|
||||||
FPixelsPerInch := Msg.wParamhi;
|
FPixelsPerInch := hi(Msg.wParam);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user