fix that the window would take a little more than the full height not giving space for potential docks on the desktop default tip

Wed, 13 Aug 2025 23:55:55 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 13 Aug 2025 23:55:55 +0200
changeset 264
653869cd653f
parent 263
cc5cd4c98e46

fix that the window would take a little more than the full height not giving space for potential docks on the desktop

test/snake/snake.c file | annotate | diff | comparison | revisions
--- a/test/snake/snake.c	Wed Aug 13 23:49:39 2025 +0200
+++ b/test/snake/snake.c	Wed Aug 13 23:55:55 2025 +0200
@@ -460,7 +460,7 @@
     asc_window_initialize(0, asc_gl_context_settings_default(4, 0));
     asc_window_set_title(0, "Snake");
     asc_window_set_size(0, asc_vec2_ftou(
-        asc_vec2f_scale(ASC_VEC2F(1024+HUD_WIDTH, 1024), asc_ui_scale_auto())));
+        asc_vec2f_scale(ASC_VEC2F(1000+HUD_WIDTH, 1000), asc_ui_scale_auto())));
     asc_window_center(0);
 
     // load textures

mercurial