SDL/Window: set render scaling method to linear
This looks better than NN scaling (default);
This commit is contained in:
parent
aa09dec0f3
commit
e558044855
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ window::window(const std::string& title,
|
|||
// Minimizing was reported as bug #1606 with blocker priority.
|
||||
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
|
||||
|
||||
// Use linear scaling when rendering, if applicable.
|
||||
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
|
||||
|
||||
pixel_format_ = info.texture_formats[0];
|
||||
|
||||
fill(0,0,0);
|
||||
|
|
Loading…
Add table
Reference in a new issue