rdp: Use current_scale instead of scale for input translation

current_scale appears to be the only one of the two updated on mode switch.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2024-06-20 06:27:16 -05:00
parent 3184f5a2df
commit c3321d5819
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ to_weston_coordinate(RdpPeerContext *peerContext, int32_t *x, int32_t *y)
if (rdp_head_contains(head, sx, sy)) {
struct weston_output *output = head->base.output;
float scale = 1.0f / head->base.output->scale;
float scale = 1.0f / head->base.output->current_scale;
sx -= head->config.x;
sy -= head->config.y;