diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:33:51 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:33:51 -0600 |
commit | 089118c18533dfa3e6ce5065dbebdd4db94051f1 (patch) | |
tree | ce014fb2326a80fcfafa2362b7ff88486aa17c96 /krfb/libvncserver | |
parent | 83677e35509b4dafac63b76995652bdf3b49f209 (diff) | |
download | tdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.tar.gz tdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'krfb/libvncserver')
-rw-r--r-- | krfb/libvncserver/cursor.c | 2 | ||||
-rw-r--r-- | krfb/libvncserver/rfb.h | 8 | ||||
-rw-r--r-- | krfb/libvncserver/rfbserver.c | 24 |
3 files changed, 17 insertions, 17 deletions
diff --git a/krfb/libvncserver/cursor.c b/krfb/libvncserver/cursor.c index f13eaaf9..ebbaedee 100644 --- a/krfb/libvncserver/cursor.c +++ b/krfb/libvncserver/cursor.c @@ -29,7 +29,7 @@ */ Bool -rfbSendtqCursorShape(cl) +rfbSendCursorShape(cl) rfbClientPtr cl; { rfbCursorPtr pCursor; diff --git a/krfb/libvncserver/rfb.h b/krfb/libvncserver/rfb.h index 56dce45e..9e097f59 100644 --- a/krfb/libvncserver/rfb.h +++ b/krfb/libvncserver/rfb.h @@ -535,7 +535,7 @@ typedef struct _rfbClientRec { Bool enableLastRectEncoding; /* client supports LastRect encoding */ Bool enableSoftCursorUpdates; /* client supports softcursor updates */ Bool disableBackground; /* client wants to disable background */ - Bool enabletqCursorShapeUpdates; /* client supports cursor tqshape updates */ + Bool enableCursorShapeUpdates; /* client supports cursor tqshape updates */ Bool useRichCursorEncoding; /* rfbEncodingRichCursor is preferred */ Bool cursorWasChanged; /* cursor tqshape update should be sent */ Bool cursorWasMoved; /* cursor move tqshape update should be sent */ @@ -569,8 +569,8 @@ typedef struct _rfbClientRec { */ #define FB_UPDATE_PENDING(cl) \ - ((!(cl)->enabletqCursorShapeUpdates && !(cl)->screen->cursorIsDrawn) || \ - ((cl)->enabletqCursorShapeUpdates && (cl)->cursorWasChanged) || \ + ((!(cl)->enableCursorShapeUpdates && !(cl)->screen->cursorIsDrawn) || \ + ((cl)->enableCursorShapeUpdates && (cl)->cursorWasChanged) || \ !sraRgnEmpty((cl)->copyRegion) || !sraRgnEmpty((cl)->modifiedRegion)) /* @@ -733,7 +733,7 @@ typedef struct rfbCursor { unsigned char *richSource; /* source bytes for a rich cursor */ } rfbCursor, *rfbCursorPtr; -extern Bool rfbSendtqCursorShape(rfbClientPtr cl/*, rfbScreenInfoPtr pScreen*/); +extern Bool rfbSendCursorShape(rfbClientPtr cl/*, rfbScreenInfoPtr pScreen*/); extern Bool rfbSendSoftCursor(rfbClientPtr cl, Bool cursorWasChanged); extern unsigned char rfbReverseByte[0x100]; extern void rfbConvertLSBCursorBitmapOrMask(int width,int height,unsigned char* bitmap); diff --git a/krfb/libvncserver/rfbserver.c b/krfb/libvncserver/rfbserver.c index 22c9202d..493f22c9 100644 --- a/krfb/libvncserver/rfbserver.c +++ b/krfb/libvncserver/rfbserver.c @@ -270,7 +270,7 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP) for (i = 0; i < 4; i++) cl->zsActive[i] = FALSE; - cl->enabletqCursorShapeUpdates = FALSE; + cl->enableCursorShapeUpdates = FALSE; cl->useRichCursorEncoding = FALSE; cl->enableLastRectEncoding = FALSE; cl->disableBackground = FALSE; @@ -663,7 +663,7 @@ rfbProcessClientNormalMessage(cl) cl->preferredEncoding = -1; cl->useCopyRect = FALSE; - cl->enabletqCursorShapeUpdates = FALSE; + cl->enableCursorShapeUpdates = FALSE; cl->enableLastRectEncoding = FALSE; cl->disableBackground = FALSE; @@ -729,7 +729,7 @@ rfbProcessClientNormalMessage(cl) if(!cl->screen->dontConvertRichCursorToXCursor) { rfbLog("Enabling X-style cursor updates for client %s\n", cl->host); - cl->enabletqCursorShapeUpdates = TRUE; + cl->enableCursorShapeUpdates = TRUE; cl->cursorWasChanged = TRUE; } break; @@ -738,7 +738,7 @@ rfbProcessClientNormalMessage(cl) "%s\n", cl->host); if (cl->enableSoftCursorUpdates) break; - cl->enabletqCursorShapeUpdates = TRUE; + cl->enableCursorShapeUpdates = TRUE; cl->useRichCursorEncoding = TRUE; cl->cursorWasChanged = TRUE; break; @@ -748,7 +748,7 @@ rfbProcessClientNormalMessage(cl) cl->enableSoftCursorUpdates = TRUE; cl->cursorWasChanged = TRUE; cl->cursorWasMoved = TRUE; - cl->enabletqCursorShapeUpdates = FALSE; + cl->enableCursorShapeUpdates = FALSE; cl->useRichCursorEncoding = FALSE; break; case rfbEncodingLastRect: @@ -959,7 +959,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf; sraRegionPtr updateRegion,updateCopyRegion,tmpRegion; int dx, dy; - Bool sendtqCursorShape = FALSE; + Bool sendCursorShape = FALSE; int sendSoftCursorRects = 0; if(cl->screen->displayHook) @@ -970,13 +970,13 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) * removed from the framebuffer. Otherwise, make sure it's put up. */ - if (cl->enabletqCursorShapeUpdates) { + if (cl->enableCursorShapeUpdates) { if (cl->screen->cursorIsDrawn) { rfbUndrawCursor(cl->screen); } if (!cl->screen->cursorIsDrawn && cl->cursorWasChanged && cl->readyForSetColourMapEntries) - sendtqCursorShape = TRUE; + sendCursorShape = TRUE; } else if (cl->enableSoftCursorUpdates) { if (cl->screen->cursorIsDrawn) { @@ -1012,7 +1012,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) updateRegion = sraRgnCreateRgn(givenUpdateRegion); sraRgnOr(updateRegion,cl->copyRegion); if(!sraRgnAnd(updateRegion,cl->requestedRegion) && - !(sendtqCursorShape || sendSoftCursorRects)) { + !(sendCursorShape || sendSoftCursorRects)) { sraRgnDestroy(updateRegion); UNLOCK(cl->updateMutex); return TRUE; @@ -1113,15 +1113,15 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) if (nUpdateRegionRects != 0xFFFF) { fu->nRects = Swap16IfLE((CARD16)(sraRgnCountRects(updateCopyRegion) + nUpdateRegionRects - + !!sendtqCursorShape + sendSoftCursorRects)); + + !!sendCursorShape + sendSoftCursorRects)); } else { fu->nRects = 0xFFFF; } cl->ublen = sz_rfbFramebufferUpdateMsg; - if (sendtqCursorShape) { + if (sendCursorShape) { cl->cursorWasChanged = FALSE; - if (!rfbSendtqCursorShape(cl)) { + if (!rfbSendCursorShape(cl)) { sraRgnDestroy(updateRegion); return FALSE; } |