diff options
-rw-r--r-- | pugl/detail/win.c | 5 | ||||
-rw-r--r-- | pugl/detail/win_gl.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c index 3f9f8f9..e06f021 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -585,8 +585,9 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam) RedrawWindow(view->impl->hwnd, NULL, NULL, RDW_INVALIDATE|RDW_ALLCHILDREN|RDW_INTERNALPAINT); } else if (wParam >= PUGL_USER_TIMER_MIN) { - const PuglEventTimer ev = {PUGL_TIMER, 0, wParam - PUGL_USER_TIMER_MIN}; - puglDispatchEvent(view, (const PuglEvent*)&ev); + PuglEvent ev = {{PUGL_TIMER, 0}}; + ev.timer.id = wParam - PUGL_USER_TIMER_MIN; + puglDispatchEvent(view, &ev); } break; case WM_EXITSIZEMOVE: diff --git a/pugl/detail/win_gl.c b/pugl/detail/win_gl.c index 0ebc5b9..23c5d83 100644 --- a/pugl/detail/win_gl.c +++ b/pugl/detail/win_gl.c @@ -294,7 +294,7 @@ puglGetProcAddress(const char* name) } const PuglBackend* -puglGlBackend() +puglGlBackend(void) { static const PuglBackend backend = {puglWinGlConfigure, puglWinGlCreate, |