From 018e90db5918a75ceaf3835be084e2387f31a47e Mon Sep 17 00:00:00 2001 From: dscho Date: Fri, 5 Oct 2001 21:41:16 +0000 Subject: changed cursor functions to use screen info, not cursor fixed copy rect. --- example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example.c') diff --git a/example.c b/example.c index 64e4d6c..1348c49 100644 --- a/example.c +++ b/example.c @@ -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 && xscreen->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); -- cgit v1.2.3