aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-01-07 13:36:39 +0100
committerdec05eba <dec05eba@protonmail.com>2023-01-07 13:36:39 +0100
commitc6017539ea7caa1db88040f96b3352f15f7b02b9 (patch)
tree898afd2ffed995c6262fa86fc20d7e00232ca5c4 /src
parent293770707e12aa6b725e5ebaa30dc1aa80fdebc3 (diff)
const
Diffstat (limited to 'src')
-rw-r--r--src/window/window.c4
1 files changed, 2 insertions, 2 deletions
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;