Clean fix issue #19

Isolate and commit fix for issue #19 without potential for regressions.
This commit is contained in:
Stefanos A. 2013-12-21 00:43:05 +01:00
parent e1619a8ad3
commit 42ce028bbf

View file

@ -1207,7 +1207,7 @@ namespace OpenTK.Platform.Windows
MSG msg; MSG msg;
public void ProcessEvents() public void ProcessEvents()
{ {
while (Functions.PeekMessage(ref msg, window.Handle, 0, 0, PeekMessageFlags.Remove)) while (Functions.PeekMessage(ref msg, IntPtr.Zero, 0, 0, PeekMessageFlags.Remove))
{ {
Functions.TranslateMessage(ref msg); Functions.TranslateMessage(ref msg);
Functions.DispatchMessage(ref msg); Functions.DispatchMessage(ref msg);