Fixing crash when changing font while in bitmap layout.
2 using System.Collections.Generic;
4 using System.Threading.Tasks;
5 using System.Windows.Forms;
7 namespace SharpDisplayClient
9 static public class Program
12 /// The main entry point for the application.
15 static public void Main()
17 //Set high priority to our process to avoid lags when rendering to our screen
18 System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.AboveNormal;
20 Application.EnableVisualStyles();
21 Application.SetCompatibleTextRenderingDefault(false);
22 Application.Run(new MainForm());