1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-11-23 21:34:53 +02:00

Compilation fix for Lazarus in Linux

This commit is contained in:
Salvador Díaz Fau
2019-05-04 09:53:50 +02:00
parent 179a2442ee
commit f8f9d420a7
3 changed files with 9 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ uses
{$ELSE}
{$IFDEF MSWINDOWS}Windows, imm, {$ENDIF} Classes, Forms, Controls, Graphics,
{$IFDEF FPC}
LCLProc, LCLType, LCLIntf, LResources, LMessages, InterfaceBase, Win32Extra,
LCLProc, LCLType, LCLIntf, LResources, LMessages, InterfaceBase, {$IFDEF MSWINDOWS}Win32Extra,{$ENDIF}
{$ELSE}
Messages,
{$ENDIF}
@@ -371,11 +371,13 @@ begin
end;
function TBufferPanel.CopyBuffer : boolean;
{$IFDEF MSWINDOWS}
var
TempFunction : TBlendFunction;
{$ENDIF}
begin
Result := False;
{$IFDEF MSWINDOWS}
if BeginBufferDraw then
try
if (FBuffer <> nil) then
@@ -405,6 +407,7 @@ begin
finally
EndBufferDraw;
end;
{$ENDIF}
end;
procedure TBufferPanel.Paint;