diff options
author | dscho <dscho> | 2001-09-24 07:30:50 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-09-24 07:30:50 +0000 |
commit | fa85c12aa9f552aeafca4099467439d4cf434b79 (patch) | |
tree | c17cbd30cbf8b62947be97fb7c2a4255adc2877f /rfbserver.c | |
parent | 1e83d9a5994e0e68497a136b719c9c1c53103f3c (diff) | |
download | libtdevnc-fa85c12aa9f552aeafca4099467439d4cf434b79.tar.gz libtdevnc-fa85c12aa9f552aeafca4099467439d4cf434b79.zip |
cursor changes
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/rfbserver.c b/rfbserver.c index 6f48cf1..e97c7d8 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -834,17 +834,20 @@ rfbSendFramebufferUpdate(cl, updateRegion) * removed from the framebuffer. Otherwise, make sure it's put up. */ - if (cl->enableCursorShapeUpdates) { - cursorWasDrawn = cl->screen->cursorIsDrawn; - if (cl->screen->cursorIsDrawn) { - fprintf(stderr,"rfbSpriteRemoveCursor(pScreen); not yet!\n"); - } - if (!cl->screen->cursorIsDrawn && cl->cursorWasChanged) - sendCursorShape = TRUE; - } else { - if (!cl->screen->cursorIsDrawn) - fprintf(stderr,"rfbSpriteRestoreCursor(pScreen); not yet!\n"); - } + cursorWasDrawn = cl->screen->cursorIsDrawn; + + if (cl->enableCursorShapeUpdates) { + if (cl->screen->cursorIsDrawn) { + rfbUndrawCursor(cl); + //fprintf(stderr,"rfbSpriteRemoveCursor(pScreen); not yet!\n"); + } + if (!cl->screen->cursorIsDrawn && cl->cursorWasChanged) + sendCursorShape = TRUE; + } else { + if (!cl->screen->cursorIsDrawn) + //rfbDrawCursor(cl); + fprintf(stderr,"rfbSpriteRestoreCursor(pScreen); not yet!\n"); + } /* * The modifiedRegion may overlap the destination copyRegion. We remove @@ -1046,9 +1049,11 @@ rfbSendFramebufferUpdate(cl, updateRegion) if(cursorWasDrawn != cl->screen->cursorIsDrawn) { if(cursorWasDrawn) - fprintf(stderr,"rfbSpriteRestoreCursor(pScreen); not yet!!\n"); + rfbDrawCursor(cl); + //fprintf(stderr,"rfbSpriteRestoreCursor(pScreen); not yet!!\n"); else - fprintf(stderr,"rfbSpriteRemoveCursor(pScreen); not yet!!\n"); + rfbUndrawCursor(cl); + //fprintf(stderr,"rfbSpriteRemoveCursor(pScreen); not yet!!\n"); } return TRUE; |