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:
parent
3184f5a2df
commit
c3321d5819
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue