diff --git a/main.c b/main.c index 929b799..1257ad2 100644 --- a/main.c +++ b/main.c @@ -498,6 +498,25 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) { case SDL_EVENT_CAMERA_DEVICE_DENIED: SDL_Log("Camera denied!"); return SDL_APP_FAILURE; + + /* + case SDL_EVENT_WINDOW_RESIZED: { + Sint32 winw = event->window.data1, winh = event->window.data2; + SDL_UpdateWindowSurface(window); + if (TODO: need to correct aspect ratio?) { + if (!SDL_SetWindowSize(window, winw/2, winh)) { + SDL_Log("Failed to resize window to %dx%d: %s", winw, winh, SDL_GetError()); + return SDL_APP_FAILURE; + } else { + SDL_Log("Resized window to %dx%d", winw, winh); + } + } + break; + } + */ + + default: + break; } return SDL_APP_CONTINUE;