SDL/Window: set render scaling method to linear

This looks better than NN scaling (default);
This commit is contained in:
Charles Dang 2017-05-30 22:29:13 +11:00
parent aa09dec0f3
commit e558044855

View file

@ -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);