diff options
author | David Robillard <d@drobilla.net> | 2020-03-15 18:14:18 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-15 20:53:37 +0100 |
commit | 9f1467c2173c487e35522139abc54d583a4078e9 (patch) | |
tree | 0000ec7030bacf36d3b7590e78363201c9ada686 /pugl/detail/win.c | |
parent | 1e7fe2208e53ae0d622b872803856b7bfb20cf23 (diff) | |
download | pugl-9f1467c2173c487e35522139abc54d583a4078e9.tar.gz pugl-9f1467c2173c487e35522139abc54d583a4078e9.tar.bz2 pugl-9f1467c2173c487e35522139abc54d583a4078e9.zip |
Cleanup: Add puglDispatchSimpleEvent() internal utility
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r-- | pugl/detail/win.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c index e8d1214..290a658 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -193,8 +193,7 @@ puglCreateWindow(PuglView* view, const char* title) puglSetFrame(view, view->frame); SetWindowLongPtr(impl->hwnd, GWLP_USERDATA, (LONG_PTR)view); - const PuglEvent createEvent = {{PUGL_CREATE, 0}}; - view->eventFunc(view, &createEvent); + puglDispatchSimpleEvent(view, PUGL_CREATE); return PUGL_SUCCESS; } |