aboutsummaryrefslogtreecommitdiff
path: root/hw/display/qxl.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-09-19 12:30:57 +0200
committerGerd Hoffmann <kraxel@redhat.com>2018-09-27 08:08:07 +0200
commit979f7ef8966bc4495a710ed9e4af42098f92ee79 (patch)
tree2448aaa06248822fd814bef43b85451ef5e9f874 /hw/display/qxl.h
parentd46b40fce2e3f5187bb9a67d348e8bfd4f73ad3b (diff)
downloadqemu-979f7ef8966bc4495a710ed9e4af42098f92ee79.zip
qemu-979f7ef8966bc4495a710ed9e4af42098f92ee79.tar.gz
qemu-979f7ef8966bc4495a710ed9e4af42098f92ee79.tar.bz2
qxl: use guest_monitor_config for local renderer.
When processing monitor config from guest store head0 width and height for single-head configurations. Use these when creating the DisplaySurface in the local renderer. This fixes a rendering issue with wayland. Wayland rounds up the framebuffer width and height to a multiple of 64, so with odd resolutions (800x600 for example) the framebuffer is larger than the actual screen. The monitor config has the actual screen size though. This fixes guest display for anything using the local renderer (non-spice UI, screendump monitor command). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20180919103057.9666-1-kraxel@redhat.com
Diffstat (limited to 'hw/display/qxl.h')
-rw-r--r--hw/display/qxl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/display/qxl.h b/hw/display/qxl.h
index 6eacba0..dd9c052 100644
--- a/hw/display/qxl.h
+++ b/hw/display/qxl.h
@@ -78,6 +78,8 @@ typedef struct PCIQXLDevice {
QXLPHYSICAL guest_cursor;
QXLPHYSICAL guest_monitors_config;
+ uint32_t guest_head0_width;
+ uint32_t guest_head0_height;
QemuMutex track_lock;