From 6c1df8e4d558fd88d94f3a78a504c922b4b2aa13 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Mon, 7 Aug 2023 17:18:09 +0200 Subject: [PATCH] use JPEG compress for client -server connection --- wvnc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wvnc.c b/wvnc.c index 7789c63..27708be 100644 --- a/wvnc.c +++ b/wvnc.c @@ -710,6 +710,14 @@ void event_loop(void *data) vncl->listenPort = LISTEN_PORT_OFFSET; vncl->listen6Port = LISTEN_PORT_OFFSET; vncl->appData.useRemoteCursor = true; + // use server JPEG encoding + vncl->appData.enableJPEG = true; + vncl->appData.qualityLevel = user_data->quality / 10; + if(vncl->appData.qualityLevel > 9) + { + vncl->appData.qualityLevel = 9; + } + //user_data->quality //vncl->GotCursorShape = cursor_changed; user_data->status = READY; // 1 for ready for connect user_data->vncl = vncl;