diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2025-04-05 13:29:39 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2025-04-05 13:29:39 +0100 |
commit | c2f5cb0a8ebf1867d808ed126eb29f5214e4ee4d (patch) | |
tree | 0200c43f3267625c222e8846e4b6084461832ce8 /src/all.c | |
parent | 87392b4465ff2aa2f988b07365bf6b0fa5ea3d09 (diff) | |
parent | 72580b4f254402647f9420ed07c5d67a9fe75187 (diff) | |
download | ldjam57-c2f5cb0a8ebf1867d808ed126eb29f5214e4ee4d.tar |
Merge branch 'grid' into red
Diffstat (limited to 'src/all.c')
-rw-r--r-- | src/all.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -176,7 +176,7 @@ int main(int argc, char **argv) { "LDJam 57", game->ui.width, game->ui.height, - 0 + SDL_WINDOW_RESIZABLE ); SDL_PropertiesID renderProps = SDL_CreateProperties(); SDL_SetPointerProperty(renderProps, SDL_PROP_RENDERER_CREATE_WINDOW_POINTER, w); @@ -204,6 +204,9 @@ int main(int argc, char **argv) { break; } break; + case SDL_EVENT_WINDOW_RESIZED: + SDL_GetWindowSize(w, &game->ui.width, &game->ui.height); + break; } } |