Skip to contentSkip to conversation

vnc: increase max display size

PATCH New Gerd Hoffmann 1 participant 1 message Apr 13, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vnc: increase max display size

It's 2023. 4k display resolutions are a thing these days. Raise width and height limits of the qemu vnc server.

Resolves: #1596

---
 ui/vnc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ui/vnc.h +2 -2
index 757fa83044e7..5d9cd85a3c24 100644
@@ -81,8 +81,8 @@ typedef void VncSendHextileTile(VncState *vs,
 
 /* VNC_MAX_WIDTH must be a multiple of VNC_DIRTY_PIXELS_PER_BIT. */
 
-#define VNC_MAX_WIDTH ROUND_UP(2560, VNC_DIRTY_PIXELS_PER_BIT)
-#define VNC_MAX_HEIGHT 2048
+#define VNC_MAX_WIDTH ROUND_UP(5120, VNC_DIRTY_PIXELS_PER_BIT)
+#define VNC_MAX_HEIGHT 2160
 
 /* VNC_DIRTY_BITS is the number of bits in the dirty bitmap. */
 #define VNC_DIRTY_BITS (VNC_MAX_WIDTH / VNC_DIRTY_PIXELS_PER_BIT)
Signature · 1 line
2.39.2