On Sun, Jun 1, 2025 at 8:53 AM Weifeng Liu <weifeng.li...@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 <bala...@eik.bme.hu>
> Cc: Gerd Hoffmann <kra...@redhat.com>
> Cc: Marc-André Lureau <marcandre.lur...@redhat.com>
> Cc: Marc-André Lureau <marcandre.lur...@gmail.com>
> Cc: "Kim, Dongwon" <dongwon....@intel.com>
> Cc: Alex Bennée <alex.ben...@linaro.org>
> Cc: Dmitry Osipenko <dmitry.osipe...@collabora.com>
>

Reviewed-by: Marc-André Lureau <marcandre.lur...@redhat.com>
Tested-by: Marc-André Lureau <marcandre.lur...@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
>
>

Reply via email to