summaryrefslogtreecommitdiffstats
path: root/rfb.h
diff options
context:
space:
mode:
authordscho <dscho>2002-10-29 14:07:15 +0000
committerdscho <dscho>2002-10-29 14:07:15 +0000
commit19c7fc0217e2087af2173974689b9b0f892a18d3 (patch)
tree19d0e028bd9a3ba3bdf55734a7a426a67f16e454 /rfb.h
parent347ab48bd94a04b14009f0ac98df5b42d5da11a5 (diff)
downloadlibtdevnc-19c7fc0217e2087af2173974689b9b0f892a18d3.tar.gz
libtdevnc-19c7fc0217e2087af2173974689b9b0f892a18d3.zip
patch from Const for CursorPosUpdate encoding
Diffstat (limited to 'rfb.h')
-rw-r--r--rfb.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/rfb.h b/rfb.h
index 7e096f0..856dd9b 100644
--- a/rfb.h
+++ b/rfb.h
@@ -483,8 +483,10 @@ typedef struct _rfbClientRec {
int rfbRectanglesSent[MAX_ENCODINGS];
int rfbLastRectMarkersSent;
int rfbLastRectBytesSent;
- int rfbCursorBytesSent;
- int rfbCursorUpdatesSent;
+ int rfbCursorShapeBytesSent;
+ int rfbCursorShapeUpdatesSent;
+ int rfbCursorPosBytesSent;
+ int rfbCursorPosUpdatesSent;
int rfbFramebufferUpdateMessagesSent;
int rfbRawBytesEquivalent;
int rfbKeyEventsRcvd;
@@ -506,8 +508,10 @@ typedef struct _rfbClientRec {
Bool enableLastRectEncoding; /* client supports LastRect encoding */
Bool enableCursorShapeUpdates; /* client supports cursor shape updates */
+ Bool enableCursorPosUpdates; /* client supports cursor position updates */
Bool useRichCursorEncoding; /* rfbEncodingRichCursor is preferred */
Bool cursorWasChanged; /* cursor shape update should be sent */
+ Bool cursorWasMoved; /* cursor position update should be sent */
Bool useNewFBSize; /* client supports NewFBSize encoding */
Bool newFBSizePending; /* framebuffer size was changed */
@@ -545,6 +549,7 @@ typedef struct _rfbClientRec {
((!(cl)->enableCursorShapeUpdates && !(cl)->screen->cursorIsDrawn) || \
((cl)->enableCursorShapeUpdates && (cl)->cursorWasChanged) || \
((cl)->useNewFBSize && (cl)->newFBSizePending) || \
+ ((cl)->enableCursorPosUpdates && (cl)->cursorWasMoved) || \
!sraRgnEmpty((cl)->copyRegion) || !sraRgnEmpty((cl)->modifiedRegion))
/*
@@ -705,7 +710,7 @@ typedef struct rfbCursor {
} rfbCursor, *rfbCursorPtr;
extern Bool rfbSendCursorShape(rfbClientPtr cl/*, rfbScreenInfoPtr pScreen*/);
-extern unsigned char rfbReverseByte[0x100];
+extern Bool rfbSendCursorPos(rfbClientPtr cl);
extern void rfbConvertLSBCursorBitmapOrMask(int width,int height,unsigned char* bitmap);
extern rfbCursorPtr rfbMakeXCursor(int width,int height,char* cursorString,char* maskString);
extern char* rfbMakeMaskForXCursor(int width,int height,char* cursorString);