mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 18:15:38 +00:00
Reverted to wait for messages.
This commit is contained in:
parent
2904b539a8
commit
2e0a6c8a96
|
@ -105,17 +105,16 @@ namespace OpenTK.Platform.Windows
|
|||
MSG msg = new MSG();
|
||||
while (Native.Exists)
|
||||
{
|
||||
Native.ProcessEvents();
|
||||
//int ret = Functions.GetMessage(ref msg, Parent.WindowHandle, 0, 0);
|
||||
//if (ret == -1)
|
||||
//{
|
||||
// throw new PlatformException(String.Format(
|
||||
// "An error happened while processing the message queue. Windows error: {0}",
|
||||
// Marshal.GetLastWin32Error()));
|
||||
//}
|
||||
int ret = Functions.GetMessage(ref msg, Parent.WindowHandle, 0, 0);
|
||||
if (ret == -1)
|
||||
{
|
||||
throw new PlatformException(String.Format(
|
||||
"An error happened while processing the message queue. Windows error: {0}",
|
||||
Marshal.GetLastWin32Error()));
|
||||
}
|
||||
|
||||
//Functions.TranslateMessage(ref msg);
|
||||
//Functions.DispatchMessage(ref msg);
|
||||
Functions.TranslateMessage(ref msg);
|
||||
Functions.DispatchMessage(ref msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue