Commit 3c9efe24 authored by hexchain's avatar hexchain Committed by Frediano Ziglio
Browse files

spice-widget: fix EGL input coordinate on HiDPI

Fixes #127

.
Signed-off-by: hexchain's avatarHaochen Tong <i@hexchain.org>
Acked-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
parent dddd48ad
......@@ -2072,8 +2072,8 @@ static void transform_input(SpiceDisplay *display,
*/
is = ((double)(d->area.width-1) / (double)(display_w-1)) * scale_factor;
window_x -= display_x;
window_y -= display_y;
window_x -= display_x / scale_factor;
window_y -= display_y / scale_factor;
*input_x = floor (window_x * is);
*input_y = floor (window_y * is);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment