From fa85c12aa9f552aeafca4099467439d4cf434b79 Mon Sep 17 00:00:00 2001 From: dscho Date: Mon, 24 Sep 2001 07:30:50 +0000 Subject: cursor changes --- example.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'example.c') diff --git a/example.c b/example.c index 24d1c6a..1f53bd9 100644 --- a/example.c +++ b/example.c @@ -94,6 +94,10 @@ void drawline(unsigned char* buffer,int rowstride,int bpp,int x1,int y1,int x2,i void doptr(int buttonMask,int x,int y,rfbClientPtr cl) { ClientData* cd=cl->clientData; + //if(cl->screen->cursorIsDrawn) + //rfbUndrawCursor(cl); + //cl->screen->cursorX=x; + //cl->screen->cursorY=y; if(x>=0 && y>=0 && xscreen->cursorIsDrawn) + //rfbUndrawCursor(cl); 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); cd->oldx+=drawchar(cl->screen->frameBuffer, cl->screen->paddedWidthInBytes,bpp,cd->oldx,cd->oldy, key); -- cgit v1.2.3