diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-03 10:54:32 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-03 10:54:32 +0100 |
commit | c2d177ad974a7dd7fda89f70e2c30077deb68a96 (patch) | |
tree | 33ae548c9000ab98673cd342f1a7fa021a3b6288 /src/window | |
parent | 8d525bc1c3506f15a5f68672245f845cebe18eef (diff) |
Use event structure in poll_event
Diffstat (limited to 'src/window')
-rw-r--r-- | src/window/Window.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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) { |