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 /cursor.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 'cursor.c')
-rw-r--r-- | cursor.c | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -331,9 +331,8 @@ void MakeRichCursorFromXCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr cursor) /* functions to draw/hide cursor directly in the frame buffer */ -void rfbUndrawCursor(rfbClientPtr cl) +void rfbUndrawCursor(rfbScreenInfoPtr s) { - rfbScreenInfoPtr s=cl->screen; rfbCursorPtr c=s->cursor; int j,x1,x2,y1,y2,bpp=s->rfbServerFormat.bitsPerPixel/8, rowstride=s->paddedWidthInBytes; @@ -372,9 +371,8 @@ void rfbUndrawCursor(rfbClientPtr cl) UNLOCK(s->cursorMutex); } -void rfbDrawCursor(rfbClientPtr cl) +void rfbDrawCursor(rfbScreenInfoPtr s) { - rfbScreenInfoPtr s=cl->screen; rfbCursorPtr c=s->cursor; int i,j,x1,x2,y1,y2,i1,j1,bpp=s->rfbServerFormat.bitsPerPixel/8, rowstride=s->paddedWidthInBytes, @@ -453,16 +451,8 @@ void rfbPrintXCursor(rfbCursorPtr cursor) extern void rfbSetCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr c,Bool freeOld) { - rfbClientIteratorPtr i = rfbGetClientIterator(rfbScreen); - rfbClientPtr cl; - LOCK(rfbScreen->cursorMutex); - - while((cl=rfbClientIteratorNext(i))) { - LOCK(cl->updateMutex); - rfbUndrawCursor(cl); - UNLOCK(cl->updateMutex); - } + rfbUndrawCursor(rfbScreen); if(freeOld && rfbScreen->cursor) rfbFreeCursor(rfbScreen->cursor); |