Support resizable windows with most examples

This commit is contained in:
Cameron Cawley
2025-10-07 17:40:17 +01:00
committed by Ryan C. Gordon
parent 2c79ecfb8a
commit 0bbbf3d43b
30 changed files with 60 additions and 30 deletions

View File

@@ -347,7 +347,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
if (!SDL_Init(SDL_INIT_VIDEO)) {
return SDL_APP_FAILURE;
}
if (!SDL_CreateWindowAndRenderer("examples/demo/woodeneye-008", 640, 480, 0, &as->window, &as->renderer)) {
if (!SDL_CreateWindowAndRenderer("examples/demo/woodeneye-008", 640, 480, SDL_WINDOW_RESIZABLE, &as->window, &as->renderer)) {
return SDL_APP_FAILURE;
}