[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] ui/gtk: Add keep-aspect-ratio and scale option
From: |
Weifeng Liu |
Subject: |
[PATCH 0/2] ui/gtk: Add keep-aspect-ratio and scale option |
Date: |
Sun, 1 Jun 2025 12:52:31 +0800 |
Add these options to give users more control over behaviors in gtk
display backend:
- keep-aspect-ratio: when set to true, if the aspect ratio of host
window differs from that of guest frame-buffer, padding will be added
to the host window to preserve the aspect ratio of guest frame-buffer.
- scale: allow user to set a preferred scale factor, which would be
helpful for users running on a hi-dpi desktop to achieve pixel to
pixel display.
Cc: BALATON Zoltan <balaton@eik.bme.hu>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@gmail.com>
Cc: "Kim, Dongwon" <dongwon.kim@intel.com>
Cc: Alex Bennée <alex.bennee@linaro.org>
Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Best regards,
Weifeng
Weifeng Liu (2):
ui/gtk: Add keep-aspect-ratio option
ui/gtk: Add scale option
include/ui/gtk.h | 2 ++
qapi/ui.json | 15 +++++++++----
ui/gtk.c | 58 ++++++++++++++++++++++++++++++++----------------
3 files changed, 52 insertions(+), 23 deletions(-)
--
2.49.0
- [PATCH 0/2] ui/gtk: Add keep-aspect-ratio and scale option,
Weifeng Liu <=