1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-04-27 07:02:21 +02:00
Salvador Díaz Fau 79b76d3e71 Fixed black browser in Lazarus demos
Added a manifest to all Lazarus demos for Windows
2024-05-02 12:31:19 +02:00

30 lines
749 B
ObjectPascal

program VirtualUIBrowser_sp;
{$MODE Delphi}
{$I ..\..\..\source\cef.inc}
uses
LCLIntf, LCLType, LMessages, Forms, Interfaces,
uCEFApplicationCore;
{$IFDEF MSWINDOWS}
// CEF needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
{$SetPEFlags $20}
{$ENDIF}
{$R *.res}
begin
GlobalCEFApp := TCefApplicationCore.Create;
GlobalCEFApp.WindowlessRenderingEnabled := True;
GlobalCEFApp.EnableGPU := True;
GlobalCEFApp.SetCurrentDir := True;
//GlobalCEFApp.LogFile := 'debug.log';
//GlobalCEFApp.LogSeverity := LOGSEVERITY_VERBOSE;
GlobalCEFApp.StartSubProcess;
DestroyGlobalCEFApp;
end.