aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/main.c b/tests/main.c
index 2155181..720cf06 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -300,7 +300,9 @@ int main(int argc, char **argv) {
} else if(event.key.code == MGL_KEY_F) {
mgl_window_set_fullscreen(&window, !mgl_window_is_fullscreen(&window));
} else if(event.key.code == MGL_KEY_X) {
- mgl_window_set_vsync_enabled(&window, !mgl_window_is_vsync_enabled(&window));
+ bool enable_vsync = !mgl_window_is_vsync_enabled(&window);
+ mgl_window_set_vsync_enabled(&window, enable_vsync);
+ fprintf(stderr, "vsync %s\n", enable_vsync ? "enabled" : "disabled");
}
fprintf(stderr, "key press event, code: %u\n", event.key.code);
break;