On Sun, Jun 1, 2025 at 8:53 AM Weifeng Liu <weifeng.liu.z@gmail.com> wrote:
> 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>
>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Marc-André Lureau <marcandre.lureau@redhat.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
>
>