diff options
| author | Weifeng Liu <weifeng.liu.z@gmail.com> | 2025-06-01 12:52:33 +0800 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2025-07-15 10:22:33 +0400 |
| commit | 0ba45b79452b7f1fb7d45a1a555cbd88ccedb228 (patch) | |
| tree | 70e5a69ad8e9ba98798b565a52465e8095901c7f /qapi | |
| parent | c65680a76c190d187be1bfd18207b22227541d77 (diff) | |
| download | focaccia-qemu-0ba45b79452b7f1fb7d45a1a555cbd88ccedb228.tar.gz focaccia-qemu-0ba45b79452b7f1fb7d45a1a555cbd88ccedb228.zip | |
ui/gtk: Add scale option
Allow user to set a preferred scale (defaulting to 1) of the virtual display. Along with zoom-to-fix=false, this would be helpful for users running QEMU on hi-dpi host desktop to achieve pixel to pixel display -- e.g., if the scale factor of a user's host desktop is set to 200%, then they can set a 0.5 scale for the virtual display to avoid magnification that might cause blurriness. Signed-off-by: Weifeng Liu <weifeng.liu.z@gmail.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Tested-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20250601045245.36778-3-weifeng.liu.z@gmail.com>
Diffstat (limited to 'qapi')
| -rw-r--r-- | qapi/ui.json | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qapi/ui.json b/qapi/ui.json index 9e496b4835..a465d671c7 100644 --- a/qapi/ui.json +++ b/qapi/ui.json @@ -1338,6 +1338,8 @@ # @keep-aspect-ratio: Keep width/height aspect ratio of guest content when # resizing host window. Defaults to "on". (Since 10.1) # +# @scale: Set preferred scale of the display. Defaults to 1.0. (Since 10.1) +# # Since: 2.12 ## { 'struct' : 'DisplayGTK', @@ -1345,7 +1347,8 @@ '*zoom-to-fit' : 'bool', '*show-tabs' : 'bool', '*show-menubar' : 'bool', - '*keep-aspect-ratio' : 'bool' } } + '*keep-aspect-ratio' : 'bool', + '*scale' : 'number' } } ## # @DisplayEGLHeadless: |