1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-04-07 06:50:04 +02:00

fix compile. If IFDEF does not apply, an empty var block causes a compile error on fpc

This commit is contained in:
martin 2021-02-07 19:46:58 +03:00 committed by martin
parent 7c94142d25
commit bfff18e7b5

View File

@ -871,14 +871,15 @@ begin
end;
function TBufferPanel.GetRealScreenScale(var aResultScale : single) : boolean;
var
{$IFDEF MSWINDOWS}
var
TempHandle : TCefWindowHandle;
TempDC : HDC;
TempDPI : UINT;
{$ELSE}
{$IFDEF LINUX}
{$IFDEF FPC}
var
TempForm : TCustomForm;
TempMonitor : TMonitor;
{$ENDIF}