aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mgl/window/window.h4
-rw-r--r--src/window/window.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index 20cfc0d..27926b2 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -113,9 +113,9 @@ void mgl_window_set_cursor_visible(mgl_window *self, bool visible);
/* 0 = no fps limit, or limit fps to vsync if vsync is enabled */
void mgl_window_set_framerate_limit(mgl_window *self, int fps);
void mgl_window_set_vsync_enabled(mgl_window *self, bool enabled);
-bool mgl_window_is_vsync_enabled(mgl_window *self);
+bool mgl_window_is_vsync_enabled(const mgl_window *self);
void mgl_window_set_fullscreen(mgl_window *self, bool fullscreen);
-bool mgl_window_is_fullscreen(mgl_window *self);
+bool mgl_window_is_fullscreen(const mgl_window *self);
void mgl_window_set_position(mgl_window *self, mgl_vec2i position);
void mgl_window_set_size(mgl_window *self, mgl_vec2i size);
diff --git a/src/window/window.c b/src/window/window.c
index 7b39153..e2a6b9d 100644
--- a/src/window/window.c
+++ b/src/window/window.c
@@ -969,7 +969,7 @@ void mgl_window_set_vsync_enabled(mgl_window *self, bool enabled) {
set_vertical_sync_enabled(self->window, self->vsync_enabled ? 1 : 0);
}
-bool mgl_window_is_vsync_enabled(mgl_window *self) {
+bool mgl_window_is_vsync_enabled(const mgl_window *self) {
return self->vsync_enabled;
}
@@ -996,7 +996,7 @@ void mgl_window_set_fullscreen(mgl_window *self, bool fullscreen) {
XFlush(context->connection);
}
-bool mgl_window_is_fullscreen(mgl_window *self) {
+bool mgl_window_is_fullscreen(const mgl_window *self) {
mgl_context *context = mgl_get_context();
x11_context *x11_context = self->context;