ui/gtk: Add keep-aspect-ratio and scale option
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ui/gtk: Add keep-aspect-ratio optioninclude/ qapi/ ui/ | +19 | 0 replies | |
| 2/2 | ui/gtk: Add scale optioninclude/ qapi/ ui/ | +34 | 0 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.
| Patch | Marc-André Lureau |
|---|---|
| Series | R-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.
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.
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