mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 08:41:31 +00:00
[client] input: fix rotated cursor scaling
This commit is contained in:
@@ -414,9 +414,9 @@ void util_localCurToGuest(struct DoublePoint *guest)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case LG_ROTATE_90:
|
case LG_ROTATE_90:
|
||||||
guest->x = (point.y - g_state.dstRect.y) * g_cursor.scale.y;
|
guest->x = (point.y - g_state.dstRect.y) * g_cursor.scale.x;
|
||||||
guest->y = (g_state.dstRect.w - point.x + g_state.dstRect.x)
|
guest->y = (g_state.dstRect.w - point.x + g_state.dstRect.x)
|
||||||
* g_cursor.scale.x;
|
* g_cursor.scale.y;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LG_ROTATE_180:
|
case LG_ROTATE_180:
|
||||||
@@ -428,8 +428,8 @@ void util_localCurToGuest(struct DoublePoint *guest)
|
|||||||
|
|
||||||
case LG_ROTATE_270:
|
case LG_ROTATE_270:
|
||||||
guest->x = (g_state.dstRect.h - point.y + g_state.dstRect.y)
|
guest->x = (g_state.dstRect.h - point.y + g_state.dstRect.y)
|
||||||
* g_cursor.scale.y;
|
* g_cursor.scale.x;
|
||||||
guest->y = (point.x - g_state.dstRect.x) * g_cursor.scale.x;
|
guest->y = (point.x - g_state.dstRect.x) * g_cursor.scale.y;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user