From a7ccef9ae862f4dec01c53808e194c0c0b540b1a Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 21 Oct 2009 20:08:04 +0000 Subject: [PATCH] Set default class cursor to avoid invalid cursors when entering the window. --- Source/OpenTK/Platform/Windows/WinGLNative.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/OpenTK/Platform/Windows/WinGLNative.cs b/Source/OpenTK/Platform/Windows/WinGLNative.cs index 4110b6eb..fe87ad60 100644 --- a/Source/OpenTK/Platform/Windows/WinGLNative.cs +++ b/Source/OpenTK/Platform/Windows/WinGLNative.cs @@ -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);