Reverted to wait for messages.

This commit is contained in:
the_fiddler 2010-11-08 22:19:19 +00:00
parent e695429db1
commit 1f037d077c

View file

@ -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);
} }
} }