testffmpeg: allow resizing of the video window

This commit is contained in:
Sam Lantinga committed 2023-10-12 00:04:00 -07:00
1 parent efa9a45048
commit bf64fecf19
1 file changed
+4 -1
+4 -1
View File
@@ -113,6 +113,9 @@ static SDL_bool CreateWindowAndRenderer(Uint32 window_flags, const char *driver)
SDL_Log("Created renderer %s\n", info.name);
}
/* Use linear scaling in case the user resizes the window */
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
#ifdef HAVE_EGL
if (useEGL) {
const char *extensions = eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS);
@@ -834,7 +837,7 @@ int main(int argc, char *argv[])
goto quit;
}
window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_HIGH_PIXEL_DENSITY;
window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIGH_PIXEL_DENSITY;
#ifdef __APPLE__
window_flags |= SDL_WINDOW_METAL;
#elif !defined(__WIN32__)