Better scale quality for small screens.

This commit is contained in:
Pere Pujal i Carabantes 2018-03-10 15:35:36 +01:00
parent e0324d5255
commit bb6b6aea93

View file

@ -23313,6 +23313,7 @@ static void setup(void)
window_scale_w = 501.f / ww;
window_scale_h = 481.f / hh;
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
if (window_scale_w > window_scale_h)
{
/* Keep things squared */