mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +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
1 changed files with 2 additions and 2 deletions
|
@ -234,12 +234,12 @@ void core_updatePositionInfo(void)
|
||||||
if (g_state.windowW > srcW)
|
if (g_state.windowW > srcW)
|
||||||
{
|
{
|
||||||
force = true;
|
force = true;
|
||||||
g_state.dstRect.w = srcW;
|
g_state.dstRect.w = (int) (srcW + 0.5);
|
||||||
}
|
}
|
||||||
if (g_state.windowH > srcH)
|
if (g_state.windowH > srcH)
|
||||||
{
|
{
|
||||||
force = true;
|
force = true;
|
||||||
g_state.dstRect.h = srcH;
|
g_state.dstRect.h = (int) (srcH + 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue