Attempt at scaling for small screens

This commit is contained in:
Linus Probert 2020-07-11 14:45:50 +02:00
parent 26c5448a30
commit 68f56b7550
No known key found for this signature in database
GPG Key ID: 644D2A477DF85CB4
1 changed files with 3 additions and 2 deletions

View File

@ -204,8 +204,9 @@ bool initSDL(void)
Dimension dim = getScreenDimensions(); Dimension dim = getScreenDimensions();
if (dim.height > 1080) { if (dim.height != 1080) {
info("Hi resolution screen detected (%u x %u)", dim.width, dim.height); info("Different resolution screen detected (%u x %u)", dim.width, dim.height);
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "0");
renderScale = ((double) dim.height)/1080; renderScale = ((double) dim.height)/1080;
info("Scaling by %f", renderScale); info("Scaling by %f", renderScale);
} }