[client] Fix narrowing issues with win:shrinkOnUpscale param

Conversion from the float values srcW/srcH to the int values for the client window dimensions would sometimes round down, causing the client to scale instead of matching the host's resolution.
This commit is contained in:
A.J. Ruckman authored and Geoffrey McRae committed 2021-07-06 01:46:33 +10:00
1 parent 6c545806ab
commit 1a7b7ce01e
1 file changed
+2 -2
+2 -2
View File
@@ -234,12 +234,12 @@ void core_updatePositionInfo(void)
if (g_state.windowW > srcW)
{
force = true;
g_state.dstRect.w = srcW;
g_state.dstRect.w = (int) (srcW + 0.5);
}
if (g_state.windowH > srcH)
{
force = true;
g_state.dstRect.h = srcH;
g_state.dstRect.h = (int) (srcH + 0.5);
}
}