diff options
author | grm <grm@eyesin.space> | 2024-05-21 13:07:00 +0300 |
---|---|---|
committer | grm <grm@eyesin.space> | 2024-05-21 13:07:00 +0300 |
commit | 4d13db7bf32a73105507297d2e573a599afd3d9d (patch) | |
tree | 5c9045977cd7c47064dd4061250f9e8546b0ece8 /src/state.h | |
parent | 3c7dbb981eb57a783e71dd91ed2038bff3fb86ac (diff) | |
download | cgame-4d13db7bf32a73105507297d2e573a599afd3d9d.tar.gz cgame-4d13db7bf32a73105507297d2e573a599afd3d9d.tar.bz2 cgame-4d13db7bf32a73105507297d2e573a599afd3d9d.zip |
Handle resize in all cases
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; |