summaryrefslogtreecommitdiffstats
path: root/example.c
diff options
context:
space:
mode:
authordscho <dscho>2001-09-24 07:30:50 +0000
committerdscho <dscho>2001-09-24 07:30:50 +0000
commitfa85c12aa9f552aeafca4099467439d4cf434b79 (patch)
treec17cbd30cbf8b62947be97fb7c2a4255adc2877f /example.c
parent1e83d9a5994e0e68497a136b719c9c1c53103f3c (diff)
downloadlibtdevnc-fa85c12aa9f552aeafca4099467439d4cf434b79.tar.gz
libtdevnc-fa85c12aa9f552aeafca4099467439d4cf434b79.zip
cursor changes
Diffstat (limited to 'example.c')
-rw-r--r--example.c8
1 files changed, 8 insertions, 0 deletions
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 && x<maxx && y<maxy) {
if(buttonMask) {
int i,j,x1,x2,y1,y2;
@@ -189,11 +193,15 @@ void dokey(Bool down,KeySym key,rfbClientPtr cl)
if(key==XK_Escape)
rfbCloseClient(cl);
else if(key==XK_Page_Up) {
+ //if(cl->screen->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);