mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 04:55:29 +00:00
Improved Mono support.
This commit is contained in:
parent
7a4e5bb4c4
commit
047eee206c
|
@ -62,6 +62,7 @@ namespace Examples
|
||||||
|
|
||||||
public ExampleLauncher()
|
public ExampleLauncher()
|
||||||
{
|
{
|
||||||
|
this.Font = SystemFonts.MessageBoxFont;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,10 @@ namespace Examples.WinForms
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
Application.Idle += StartAsync;
|
Application.Idle += StartAsync;
|
||||||
|
|
||||||
|
// Workaround for missing Idle event on Mono/Windows.
|
||||||
|
if (Configuration.RunningOnMono && Configuration.RunningOnWindows)
|
||||||
|
Application.RaiseIdle(EventArgs.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -61,6 +65,7 @@ namespace Examples.WinForms
|
||||||
}
|
}
|
||||||
|
|
||||||
backgroundWorker1.RunWorkerAsync();
|
backgroundWorker1.RunWorkerAsync();
|
||||||
|
TextBoxSupport.Text = "processing... (please be patient)";
|
||||||
}
|
}
|
||||||
|
|
||||||
void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
|
void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
|
||||||
|
|
Loading…
Reference in a new issue