mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 00:31: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;
|
||||
|
||||
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)
|
||||
* g_cursor.scale.x;
|
||||
* g_cursor.scale.y;
|
||||
break;
|
||||
|
||||
case LG_ROTATE_180:
|
||||
@@ -428,8 +428,8 @@ void util_localCurToGuest(struct DoublePoint *guest)
|
||||
|
||||
case LG_ROTATE_270:
|
||||
guest->x = (g_state.dstRect.h - point.y + g_state.dstRect.y)
|
||||
* g_cursor.scale.y;
|
||||
guest->y = (point.x - g_state.dstRect.x) * g_cursor.scale.x;
|
||||
* g_cursor.scale.x;
|
||||
guest->y = (point.x - g_state.dstRect.x) * g_cursor.scale.y;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user