diff options
author | Weifeng Liu <weifeng.liu.z@gmail.com> | 2025-05-11 15:33:14 +0800 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2025-05-24 17:03:21 +0200 |
commit | 8fb072472c38cb1778c5b0bebf535a8b13533857 (patch) | |
tree | 8f35e6a32c6dfee22d4bc74c540a4186631835a4 /python/scripts | |
parent | a19665448156f17b52b7f33e7960d57efcfca067 (diff) | |
download | qemu-8fb072472c38cb1778c5b0bebf535a8b13533857.zip qemu-8fb072472c38cb1778c5b0bebf535a8b13533857.tar.gz qemu-8fb072472c38cb1778c5b0bebf535a8b13533857.tar.bz2 |
ui/gtk: Update scales in fixed-scale mode when rendering GL area
When gl=on, scale_x and scale_y were set to 1 on startup that didn't
reflect the real situation of the scan-out in free scale mode, resulting
in incorrect cursor coordinates to be sent when moving the mouse
pointer. Simply updating the scales before rendering the image fixes
this issue.
Signed-off-by: Weifeng Liu <weifeng.liu.z@gmail.com>
Message-ID: <20250511073337.876650-5-weifeng.liu.z@gmail.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'python/scripts')
0 files changed, 0 insertions, 0 deletions