[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 2021-07-04 17:03:02 +00:00 committed by Geoffrey McRae
parent 6c545806ab
commit 1a7b7ce01e

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);
}
}