scale pixel-exact when we don't use a scaler

This commit is contained in:
Tim Felgentreff 2020-04-22 23:27:11 +02:00
parent e37901b33d
commit 4682159fe6

View file

@ -345,7 +345,11 @@ void InitVideoSdl()
}
if (!TheRenderer) TheRenderer = SDL_CreateRenderer(TheWindow, -1, 0);
SDL_SetRenderDrawColor(TheRenderer, 0, 0, 0, 255);
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "2");
if (Video.Scaler != NullScaler) {
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "2");
} else {
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "0");
}
Video.ResizeScreen(Video.Width, Video.Height);
#if ! defined(USE_WIN32) && ! defined(USE_MAEMO)