Skip to content

ui/gtk: Add keep-aspect-ratio and scale option

Weifeng Liu qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ui/gtk: Add keep-aspect-ratio optioninclude/ui/gtk.h qapi/ui.json ui/gtk.c+19 -60 replies
2/2ui/gtk: Add scale optioninclude/ui/gtk.h qapi/ui.json ui/gtk.c+34 -180 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc-André Lureau
SeriesR-b T-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] ui/gtk: Add keep-aspect-ratio and scale option

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 <[email protected]>
Cc Gerd Hoffmann <[email protected]>
Cc Marc-André Lureau <[email protected]>
Cc Marc-André Lureau <[email protected]>
Cc "Kim, Dongwon" <[email protected]>
Cc Alex Bennée <[email protected]>
Cc Dmitry Osipenko <[email protected]>

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(-)
Signature · 1 line
2.49.0