From a6eefcc1d2dd2479b44dbd0bb3732e8568725277 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 21 May 2024 13:07:00 +0300 Subject: Handle resize in all cases --- src/state.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/state.h') diff --git a/src/state.h b/src/state.h index 17be1c0..6feb9d1 100644 --- a/src/state.h +++ b/src/state.h @@ -59,7 +59,8 @@ typedef struct state { float x; int zoom; - SDL_Window* sdl_window; + SDL_Window *sdl_window; + int sdl_window_resized; VkInstance vk_instance; VkDebugUtilsMessengerEXT vk_debug_messenger; @@ -131,6 +132,8 @@ init_state(state_t * s) s->rotate = 0; s->mouse_pressed = 0; + s->sdl_window_resized = 0; + s->window_w = 800; s->window_h = 600; s->cell_w = 10; -- cgit v1.2.3