scale pixel-exact when we don't use a scaler
This commit is contained in:
parent
e37901b33d
commit
4682159fe6
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue