Skip to content

Commit

Permalink
Use the custom conditional compilation directives
Browse files Browse the repository at this point in the history
  • Loading branch information
salvadordf committed Nov 17, 2020
1 parent 3ab78ad commit db361ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/uCEFFMXBufferPanel.pas
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,12 @@ function TFMXBufferPanel.GetParentFormHandle : TCefWindowHandle;
end;

function TFMXBufferPanel.GetScreenScale : Single;
{$IFDEF VER310}
{$IFDEF DELPHI24_UP}
var
TempHandle : TCefWindowHandle;
{$ENDIF}
begin
{$IFDEF VER310}
{$IFDEF DELPHI24_UP}
TempHandle := GetParentFormHandle;

if (TempHandle <> 0) then
Expand Down
4 changes: 2 additions & 2 deletions source/uCEFFMXChromium.pas
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ function TFMXChromium.GetParentForm : TCustomForm;
end;

function TFMXChromium.GetScreenScale : Single;
{$IFDEF VER310}
{$IFDEF DELPHI24_UP}
var
TempHandle : TCefWindowHandle;
{$ENDIF}
begin
{$IFDEF VER310}
{$IFDEF DELPHI24_UP}
TempHandle := GetParentFormHandle;

if (TempHandle <> 0) then
Expand Down

0 comments on commit db361ed

Please sign in to comment.