From 68f56b7550a8eda935cf821d0072205ca5958460 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Sat, 11 Jul 2020 14:45:50 +0200 Subject: [PATCH] Attempt at scaling for small screens --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 72f6e13..311c7a4 100644 --- a/src/main.c +++ b/src/main.c @@ -204,8 +204,9 @@ bool initSDL(void) Dimension dim = getScreenDimensions(); - if (dim.height > 1080) { - info("Hi resolution screen detected (%u x %u)", dim.width, dim.height); + if (dim.height != 1080) { + 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; info("Scaling by %f", renderScale); }