mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] spice: fix transposed cursor scale calculations
This commit is contained in:
parent
31ea93dd0d
commit
da65c47245
@ -258,8 +258,8 @@ static void updatePositionInfo(void)
|
|||||||
srcW != g_state.dstRect.w ||
|
srcW != g_state.dstRect.w ||
|
||||||
g_cursor.guest.dpiScale != 100);
|
g_cursor.guest.dpiScale != 100);
|
||||||
|
|
||||||
g_cursor.scale.x = (float)srcH / (float)g_state.dstRect.h;
|
g_cursor.scale.x = (float)srcW / (float)g_state.dstRect.w;
|
||||||
g_cursor.scale.y = (float)srcW / (float)g_state.dstRect.w;
|
g_cursor.scale.y = (float)srcH / (float)g_state.dstRect.h;
|
||||||
g_cursor.dpiScale = g_cursor.guest.dpiScale / 100.0f;
|
g_cursor.dpiScale = g_cursor.guest.dpiScale / 100.0f;
|
||||||
|
|
||||||
if (!g_state.posInfoValid)
|
if (!g_state.posInfoValid)
|
||||||
|
Loading…
Reference in New Issue
Block a user