mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-08 07:10:34 +00:00
Set default class cursor to avoid invalid cursors when entering the window.
This commit is contained in:
parent
7b8ba2eacb
commit
ea4b599d0e
|
@ -546,6 +546,7 @@ namespace OpenTK.Platform.Windows
|
||||||
wc.WndProc = WindowProcedureDelegate;
|
wc.WndProc = WindowProcedureDelegate;
|
||||||
wc.ClassName = ClassName;
|
wc.ClassName = ClassName;
|
||||||
wc.Icon = Icon != null ? Icon.Handle : IntPtr.Zero;
|
wc.Icon = Icon != null ? Icon.Handle : IntPtr.Zero;
|
||||||
|
wc.Cursor = Functions.LoadCursor(CursorName.Arrow);
|
||||||
//wc.Background = Functions.GetStockObject(5);
|
//wc.Background = Functions.GetStockObject(5);
|
||||||
ushort atom = Functions.RegisterClassEx(ref wc);
|
ushort atom = Functions.RegisterClassEx(ref wc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue