From c2d177ad974a7dd7fda89f70e2c30077deb68a96 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 3 Nov 2021 10:54:32 +0100 Subject: Use event structure in poll_event --- src/window/Window.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/window') diff --git a/src/window/Window.cpp b/src/window/Window.cpp index 9e1fb75..580737d 100644 --- a/src/window/Window.cpp +++ b/src/window/Window.cpp @@ -33,10 +33,7 @@ namespace mgl { bool Window::poll_event(Event &event) { if(!window.window) return false; - - /* TODO: Convert c_event to |event| */ - mgl_event c_event; - return mgl_window_poll_event(&window, &c_event); + return mgl_window_poll_event(&window, (mgl_event*)&event); } void Window::clear(Color color) { -- cgit v1.2.3