]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/gtk: Add keep-aspect-ratio option
authorWeifeng Liu <weifeng.liu.z@gmail.com>
Sun, 1 Jun 2025 04:52:32 +0000 (12:52 +0800)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 15 Jul 2025 06:22:33 +0000 (10:22 +0400)
commitc65680a76c190d187be1bfd18207b22227541d77
tree8093afc462fcaa28e9bb95699888485eef69b317
parent454f4b0f593b149c7a6d8192e1ed3de00de9ae24
ui/gtk: Add keep-aspect-ratio option

When aspect ratio of host window and that of guest display are not
aligned, we can either zoom the guest content to fill the whole host
window or add padding to respect aspect ratio of the guest. Add an
option keep-aspect-ratio to allow users to select their preferred
behavior in this case.

Suggested-by: BALATON Zoltan <balaton@eik.bme.hu>
Suggested-by: Kim, Dongwon <dongwon.kim@intel.com>
Signed-off-by: Weifeng Liu <weifeng.liu.z@gmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20250601045245.36778-2-weifeng.liu.z@gmail.com>
include/ui/gtk.h
qapi/ui.json
ui/gtk.c