Possibly more accurate scaling.
This commit is contained in:
parent
dff55a1978
commit
53dc7e2fe6
|
@ -108,10 +108,6 @@ bool initSDL(void)
|
||||||
if (dim.height > 1080) {
|
if (dim.height > 1080) {
|
||||||
info("Hi resolution screen detected (%u x %u)", dim.width, dim.height);
|
info("Hi resolution screen detected (%u x %u)", dim.width, dim.height);
|
||||||
renderScale = ((double) dim.height)/1080;
|
renderScale = ((double) dim.height)/1080;
|
||||||
if (renderScale > 2)
|
|
||||||
renderScale = 3;
|
|
||||||
else if (renderScale > 1)
|
|
||||||
renderScale = 2;
|
|
||||||
info("Scaling by %f", renderScale);
|
info("Scaling by %f", renderScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue