You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Improved functions to read the screen scale in FMX
Fixed FMXExternalPumpBrowser2 initialization issue in Linux
This commit is contained in:
@@ -417,9 +417,12 @@ begin
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF LINUX}
|
||||
// TODO: Get the scale of the screen where the parent form is located in FMXLinux
|
||||
Result := False;
|
||||
aResultScale := 1;
|
||||
if (Screen.DisplayCount = 1) then
|
||||
aResultScale := Screen.Displays[0].Scale
|
||||
else
|
||||
aResultScale := Screen.DisplayFromForm(GetParentForm).Scale;
|
||||
|
||||
Result := True;
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF MACOS}
|
||||
|
||||
Reference in New Issue
Block a user