aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-19 22:13:51 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-19 22:13:51 +0200
commit2d4457a5ee926eca221102ee70f118b305ea2670 (patch)
treee186cf369f30c18c7fb60660f79bc51bc37f4f8f
parent9da3c2188060dc982412d7a6e1cd2051b9ddb6a6 (diff)
poll event change name
-rw-r--r--include/mgl/window/window.h2
-rw-r--r--src/window/window.c2
-rw-r--r--tests/main.c2
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)) {
}