From f60d0728f58fa366f1ca1f3406f0335a777db829 Mon Sep 17 00:00:00 2001 From: sonil Date: Fri, 23 Jun 2023 10:59:51 +0800 Subject: [PATCH] enable SDL texture filter for better graphic --- src/svga.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/svga.cc b/src/svga.cc index 0d90650..e621700 100644 --- a/src/svga.cc +++ b/src/svga.cc @@ -374,6 +374,8 @@ static bool createRenderer(int width, int height) return false; } + SDL_SetTextureScaleMode(gSdlTexture, SDL_ScaleModeBest); + Uint32 format; if (SDL_QueryTexture(gSdlTexture, &format, NULL, NULL, NULL) != 0) { return false;