Compare commits

...

2 Commits

Author SHA1 Message Date
DanyLE
6c1df8e4d5 use JPEG compress for client -server connection
All checks were successful
gitea-sync/antd-wvnc-plugin/pipeline/head This commit looks good
gitea-sync/antd-wvnc-plugin/pipeline/tag This commit looks good
2023-08-07 17:18:09 +02:00
DanyLE
9c7f4d1cba Use only remote cursor 2023-08-07 16:59:21 +02:00

10
wvnc.c
View File

@ -709,6 +709,16 @@ void event_loop(void *data)
vncl->GetCredential = get_credential;
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;
rfbClientSetClientData(vncl, vncl, user_data);