diff options
author | David Robillard <d@drobilla.net> | 2019-07-22 16:53:02 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:32:16 +0200 |
commit | 93f4920cfc03d1a2a8c0df9c6d863cdf20c6ab32 (patch) | |
tree | 64ef7427a32b88183bae8720b07fc9258b769b3e /pugl/detail/win.c | |
parent | 496f17c3804c79d304aa6095b92768593d1cc700 (diff) | |
download | pugl-93f4920cfc03d1a2a8c0df9c6d863cdf20c6ab32.tar.gz pugl-93f4920cfc03d1a2a8c0df9c6d863cdf20c6ab32.tar.bz2 pugl-93f4920cfc03d1a2a8c0df9c6d863cdf20c6ab32.zip |
Add puglDispatchEvents()
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) { |