aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-04 14:02:00 +0200
committerDavid Robillard <d@drobilla.net>2020-07-04 14:02:00 +0200
commitf00254d45b064d4203df323f27e0e30f7ec821f7 (patch)
treee865bd75feaec454a0c80b5d635d3cd469c1dd6d /pugl/detail/win.c
parent3b497c847d149b11d45c6ac40b976496d9ad116d (diff)
downloadpugl-f00254d45b064d4203df323f27e0e30f7ec821f7.tar.gz
pugl-f00254d45b064d4203df323f27e0e30f7ec821f7.tar.bz2
pugl-f00254d45b064d4203df323f27e0e30f7ec821f7.zip
Windows: Fix old-style declaration warning
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r--pugl/detail/win.c5
1 files changed, 3 insertions, 2 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: