diff options
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r-- | pugl/detail/win.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c index 9d0d0e5..6cd34e3 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -682,11 +682,11 @@ puglWaitForEvent(PuglView* PUGL_UNUSED(view)) return PUGL_SUCCESS; } -PuglStatus -puglProcessEvents(PuglView* view) +PUGL_API PuglStatus +puglDispatchEvents(PuglWorld* PUGL_UNUSED(world)) { MSG msg; - while (PeekMessage(&msg, view->impl->hwnd, 0, 0, PM_REMOVE)) { + while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg); } @@ -694,6 +694,12 @@ puglProcessEvents(PuglView* view) return PUGL_SUCCESS; } +PuglStatus +puglProcessEvents(PuglView* view) +{ + return puglDispatchEvents(view->world); +} + LRESULT CALLBACK wndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { |