aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
Diffstat (limited to 'src/window')
-rw-r--r--src/window/Window.cpp5
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) {