aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-15 18:14:18 +0100
committerDavid Robillard <d@drobilla.net>2020-03-15 20:53:37 +0100
commit9f1467c2173c487e35522139abc54d583a4078e9 (patch)
tree0000ec7030bacf36d3b7590e78363201c9ada686 /pugl/detail/win.c
parent1e7fe2208e53ae0d622b872803856b7bfb20cf23 (diff)
downloadpugl-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.c3
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;
}