summaryrefslogtreecommitdiffstats
path: root/sdl/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdl/platform.c')
-rw-r--r--sdl/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl/platform.c b/sdl/platform.c
index 138596a..7c7bcdd 100644
--- a/sdl/platform.c
+++ b/sdl/platform.c
@@ -71,7 +71,7 @@ void platform_init(struct platform *p)
struct event_vtbl event_tbl;
memset(&event_tbl, 0, sizeof(event_tbl));
event_tbl.keydown = event_keydown;
- ret = event_handler_init(&event_tbl);
+ ret = event_handler_init(p, &event_tbl);
if (ret == -1)
fprintf(stderr, "platform: warning, failed to init event handler\n");