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