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
if Parent=nil then
begin
if Scaled and (Msg.wParamhi<>PixelsPerInch) then
if Scaled and (hi(Msg.wParam)<>PixelsPerInch) then
begin
ScaleBy(Msg.wParamhi, PixelsPerInch);
FPixelsPerInch := Msg.wParamhi;
ScaleBy(hi(Msg.wParam), PixelsPerInch);
FPixelsPerInch := hi(Msg.wParam);
end;
end;
end;