[fix] fix render stream blurry problem

This commit is contained in:
dijunkun
2024-09-11 11:22:17 +08:00
parent 04ab157ecb
commit 9096769a85
2 changed files with 6 additions and 2 deletions

View File

@@ -313,7 +313,11 @@ int Render::Run() {
return -1;
}
// Create main window with SDL_Renderer graphics context
// use linear filtering to render textures otherwise the graphics will be
// blurry
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1");
// create main window with SDL_Renderer graphics context
SDL_WindowFlags window_flags =
(SDL_WindowFlags)(SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_BORDERLESS);
main_window_ = SDL_CreateWindow(