You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-08-04 21:32:54 +02:00
fix compile. If IFDEF does not apply, an empty var block causes a compile error on fpc
This commit is contained in:
@@ -871,14 +871,15 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TBufferPanel.GetRealScreenScale(var aResultScale : single) : boolean;
|
function TBufferPanel.GetRealScreenScale(var aResultScale : single) : boolean;
|
||||||
var
|
|
||||||
{$IFDEF MSWINDOWS}
|
{$IFDEF MSWINDOWS}
|
||||||
|
var
|
||||||
TempHandle : TCefWindowHandle;
|
TempHandle : TCefWindowHandle;
|
||||||
TempDC : HDC;
|
TempDC : HDC;
|
||||||
TempDPI : UINT;
|
TempDPI : UINT;
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
{$IFDEF LINUX}
|
{$IFDEF LINUX}
|
||||||
{$IFDEF FPC}
|
{$IFDEF FPC}
|
||||||
|
var
|
||||||
TempForm : TCustomForm;
|
TempForm : TCustomForm;
|
||||||
TempMonitor : TMonitor;
|
TempMonitor : TMonitor;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
Reference in New Issue
Block a user