You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Fixed building errors and warnings on FMX for MacOS and Linux thanks to Christoph Schneider
This commit is contained in:
@@ -385,15 +385,15 @@ begin
|
||||
end;
|
||||
|
||||
function TFMXBufferPanel.GetRealScreenScale(var aResultScale : single) : boolean;
|
||||
{$IFDEF DELPHI24_UP}
|
||||
{$IFDEF DELPHI24_UP}{$IFDEF MSWINDOWS}
|
||||
var
|
||||
TempHandle : TCefWindowHandle;
|
||||
{$ENDIF}
|
||||
{$ENDIF}{$ENDIF}
|
||||
begin
|
||||
Result := False;
|
||||
aResultScale := 1;
|
||||
|
||||
{$IFDEF DELPHI24_UP}
|
||||
{$IFDEF DELPHI24_UP}{$IFDEF MSWINDOWS}
|
||||
TempHandle := GetParentFormHandle;
|
||||
|
||||
if (TempHandle <> 0) then
|
||||
@@ -401,7 +401,7 @@ begin
|
||||
Result := True;
|
||||
aResultScale := GetWndScale(TempHandle);
|
||||
end;
|
||||
{$ENDIF}
|
||||
{$ENDIF}{$ENDIF}
|
||||
end;
|
||||
|
||||
function TFMXBufferPanel.GetScreenScale : single;
|
||||
|
||||
Reference in New Issue
Block a user