diff options
author | dscho <dscho> | 2001-10-05 21:41:16 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-10-05 21:41:16 +0000 |
commit | 018e90db5918a75ceaf3835be084e2387f31a47e (patch) | |
tree | 88208ae81ee1c6531f054dfc55c477928babec21 /rfbserver.c | |
parent | 8f407f8a1ab2adf08c438f40cd797fef8a810dae (diff) | |
download | libtdevnc-018e90db5918a75ceaf3835be084e2387f31a47e.tar.gz libtdevnc-018e90db5918a75ceaf3835be084e2387f31a47e.zip |
changed cursor functions to use screen info, not cursor
fixed copy rect.
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rfbserver.c b/rfbserver.c index 5266e5a..2460130 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -857,14 +857,14 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) if (cl->enableCursorShapeUpdates) { if (cl->screen->cursorIsDrawn) { - rfbUndrawCursor(cl); + rfbUndrawCursor(cl->screen); } if (!cl->screen->cursorIsDrawn && cl->cursorWasChanged && cl->readyForSetColourMapEntries) sendCursorShape = TRUE; } else { if (!cl->screen->cursorIsDrawn) { - rfbDrawCursor(cl); + rfbDrawCursor(cl->screen); } } @@ -1093,7 +1093,7 @@ rfbSendCopyRegion(cl, reg, dx, dy) sraRectangleIterator* i; sraRect rect1; - i = sraRgnGetReverseIterator(reg,dx<0,dy<0); + i = sraRgnGetReverseIterator(reg,dx>0,dy>0); while(sraRgnIteratorNext(i,&rect1)) { x = rect1.x1; @@ -1113,7 +1113,7 @@ rfbSendCopyRegion(cl, reg, dx, dy) cr.srcX = Swap16IfLE(x - dx); cr.srcY = Swap16IfLE(y - dy); -fprintf(stderr,"sent copyrect (%d,%d) (%d,%d) (%d,%d)\n",x,y,w,h,x-dx,y-dy); + memcpy(&cl->updateBuf[cl->ublen], (char *)&cr, sz_rfbCopyRect); cl->ublen += sz_rfbCopyRect; |