Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2025-04-05 13:29:39 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2025-04-05 13:29:39 +0100
commitc2f5cb0a8ebf1867d808ed126eb29f5214e4ee4d (patch)
tree0200c43f3267625c222e8846e4b6084461832ce8 /src
parent87392b4465ff2aa2f988b07365bf6b0fa5ea3d09 (diff)
parent72580b4f254402647f9420ed07c5d67a9fe75187 (diff)
downloadldjam57-c2f5cb0a8ebf1867d808ed126eb29f5214e4ee4d.tar
Merge branch 'grid' into red
Diffstat (limited to 'src')
-rw-r--r--src/all.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/all.c b/src/all.c
index 130bf27..43b5d13 100644
--- a/src/all.c
+++ b/src/all.c
@@ -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;
}
}