mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Add Cef.DoMessageLoopWork example to WinForms.Example project
This commit is contained in:
@@ -27,7 +27,7 @@ namespace CefSharp.Example
|
||||
private static readonly bool DebuggingSubProcess = Debugger.IsAttached;
|
||||
private static string PluginInformation = "";
|
||||
|
||||
public static void Init(bool osr)
|
||||
public static void Init(bool osr, bool multiThreadedMessageLoop)
|
||||
{
|
||||
// Set Google API keys, used for Geolocation requests sans GPS. See http://www.chromium.org/developers/how-tos/api-keys
|
||||
// Environment.SetEnvironmentVariable("GOOGLE_API_KEY", "");
|
||||
@@ -73,6 +73,8 @@ namespace CefSharp.Example
|
||||
//Possibly useful when experiencing blury fonts.
|
||||
//settings.CefCommandLineArgs.Add("disable-direct-write", "1");
|
||||
|
||||
settings.MultiThreadedMessageLoop = multiThreadedMessageLoop;
|
||||
|
||||
// Off Screen rendering (WPF/Offscreen)
|
||||
if(osr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user