mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[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:
parent
6c545806ab
commit
1a7b7ce01e
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user