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 /example.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 'example.c')
-rw-r--r-- | example.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -102,7 +102,7 @@ void doptr(int buttonMask,int x,int y,rfbClientPtr cl) ClientData* cd=cl->clientData; if(cl->screen->cursorIsDrawn) - rfbUndrawCursor(cl); + rfbUndrawCursor(cl->screen); if(x>=0 && y>=0 && x<maxx && y<maxy) { if(buttonMask) { @@ -149,14 +149,14 @@ void dokey(Bool down,KeySym key,rfbClientPtr cl) rfbCloseClient(cl); else if(key==XK_Page_Up) { if(cl->screen->cursorIsDrawn) - rfbUndrawCursor(cl); + rfbUndrawCursor(cl->screen); initBuffer(cl->screen->frameBuffer); rfbMarkRectAsModified(cl->screen,0,0,maxx,maxy); } else if(key>=' ' && key<0x100) { ClientData* cd=cl->clientData; int x1=cd->oldx,y1=cd->oldy,x2,y2; if(cl->screen->cursorIsDrawn) - rfbUndrawCursor(cl); + rfbUndrawCursor(cl->screen); cd->oldx+=rfbDrawChar(cl->screen,&radonFont,cd->oldx,cd->oldy,key,0xffffff); rfbFontBBox(&radonFont,key,&x1,&y1,&x2,&y2); rfbMarkRectAsModified(cl->screen,x1,y1,x2-1,y2-1); |