Reduce overscaling above 1080p

Restores original scaling for 1440p to try and keep the text size more
sane on high DPI monitors
This commit is contained in:
Loki Rautio 2026-04-12 22:47:41 -05:00
parent 5004cc202d
commit a144a252e7

View file

@ -1214,7 +1214,11 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
float scale = min(scaleWidth, scaleHeight); //stop stretching
if (scale < 0.5f) scale = 0.5f; //force minimum scale
if (scale < 0.5f) scale = 0.5f; // force minimum scale
if (scale > 1.2f) // resolutions over 1296 pixels tall
{
scale = scale - 0.33f; // tame overscaling on 1440p
}
glScalef(scale, scale, 1);
#endif