lcl: forma: change wParamhi to hi(wParam), issue #31043

git-svn-id: trunk@53502 -
This commit is contained in:
ondrej 2016-12-01 00:32:55 +00:00
parent f4df715ad3
commit 5c4c3d1948

View File

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