Tweaked the scaling slightly

This commit is contained in:
Linus Probert 2018-01-24 18:06:10 +01:00
parent eea667f5f1
commit 720ce7fc71
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ bool initSDL(void)
if (dim.height > 1080) {
info("Hi resolution screen detected (%u x %u)", dim.width, dim.height);
renderScale = ((double) dim.height)/1080;
if (renderScale > 2)
renderScale = 3;
else if (renderScale > 1)
renderScale = 2;
info("Scaling by %f", renderScale);
}