[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:
1 parent
6c545806ab
commit
1a7b7ce01e
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user