Set default class cursor to avoid invalid cursors when entering the window.

This commit is contained in:
the_fiddler 2009-10-21 20:08:04 +00:00
parent f1fc4b5b4e
commit a7ccef9ae8

View file

@ -546,6 +546,7 @@ namespace OpenTK.Platform.Windows
wc.WndProc = WindowProcedureDelegate;
wc.ClassName = ClassName;
wc.Icon = Icon != null ? Icon.Handle : IntPtr.Zero;
wc.Cursor = Functions.LoadCursor(CursorName.Arrow);
//wc.Background = Functions.GetStockObject(5);
ushort atom = Functions.RegisterClassEx(ref wc);