diff options
-rw-r--r-- | include/mgl/window/window.h | 2 | ||||
-rw-r--r-- | src/window/window.c | 2 | ||||
-rw-r--r-- | tests/main.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h index d66fa71..c1517da 100644 --- a/include/mgl/window/window.h +++ b/include/mgl/window/window.h @@ -23,7 +23,7 @@ int mgl_window_create_with_params(mgl_window *self, const char *title, int width void mgl_window_deinit(mgl_window *self); void mgl_window_clear(mgl_window *self, mgl_color color); -bool mgl_window_events_poll(mgl_window *self, mgl_event *event); +bool mgl_window_poll_event(mgl_window *self, mgl_event *event); void mgl_window_display(mgl_window *self); #endif /* MGL_WINDOW_H */ diff --git a/src/window/window.c b/src/window/window.c index d81f98e..80c3ccf 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -132,7 +132,7 @@ void mgl_window_clear(mgl_window *self, mgl_color color) { context->gl.glClearColor((float)color.r / 255.0f, (float)color.g / 255.0f, (float)color.b / 255.0f, (float)color.a / 255.0f); } -bool mgl_window_events_poll(mgl_window *self, mgl_event *event) { +bool mgl_window_poll_event(mgl_window *self, mgl_event *event) { /* TODO: Use |event| */ Display *display = mgl_get_context()->connection; diff --git a/tests/main.c b/tests/main.c index e7dc656..1675439 100644 --- a/tests/main.c +++ b/tests/main.c @@ -58,7 +58,7 @@ int main(int argc, char **argv) { mgl_event event; for(;;) { - while(mgl_window_events_poll(&window, &event)) { + while(mgl_window_poll_event(&window, &event)) { } |