Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/src/all.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/all.c')
-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;
}
}