From 6b5c5ce624178c1b61c9d5b8677d1c7f8ef38286 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 27 Apr 2021 10:04:08 +0300 Subject: Window: Display DPI is only used to enlarge UI, never shrink --- src/ui/window.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ui/window.c') diff --git a/src/ui/window.c b/src/ui/window.c index 086ab86e..10c7fc82 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1392,10 +1392,7 @@ static float displayScale_Window_(const iWindow *d) { SDL_GetDisplayDPI(SDL_GetWindowDisplayIndex(d->win), NULL, NULL, &vdpi); // printf("DPI: %f\n", vdpi); const float factor = vdpi / baseDPI_Window / pixelRatio_Window_(d); - if (factor < 0.5f) { - return 1.0f; /* seems invalid */ - } - return iMax(0.75f, factor); + return iMax(1.0f, factor); #endif } -- cgit v1.2.3