rfbproto: Add #define for rfbEncodingPts

latency-reporting
Andri Yngvason 2023-04-09 09:15:12 +00:00
parent 82080db09a
commit 9fd5caaa4b
2 changed files with 2 additions and 1 deletions

View File

@ -498,6 +498,7 @@ typedef struct {
#define rfbEncodingSupportedEncodings 0xFFFE0002 #define rfbEncodingSupportedEncodings 0xFFFE0002
#define rfbEncodingServerIdentity 0xFFFE0003 #define rfbEncodingServerIdentity 0xFFFE0003
#define rfbEncodingPts -1000
/***************************************************************************** /*****************************************************************************
* *

View File

@ -1396,7 +1396,7 @@ rfbBool SetFormatAndEncodings(rfbClient* client)
/* pts */ /* pts */
if (se->nEncodings < MAX_ENCODINGS) if (se->nEncodings < MAX_ENCODINGS)
encs[se->nEncodings++] = rfbClientSwap32IfLE(-1000); encs[se->nEncodings++] = rfbClientSwap32IfLE(rfbEncodingPts);
len = sz_rfbSetEncodingsMsg + se->nEncodings * 4; len = sz_rfbSetEncodingsMsg + se->nEncodings * 4;