diff options
author | dscho <dscho> | 2005-01-18 23:18:04 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-01-18 23:18:04 +0000 |
commit | a84b3d072a89e05c5aa5f702d223cfe304379293 (patch) | |
tree | 6e8b11537f0fe91e5a62b2dc559521ce8c9a9a13 /contrib | |
parent | dd923e866021418379ee88b8a927597f616fbc84 (diff) | |
download | libvncserver-a84b3d072a89e05c5aa5f702d223cfe304379293.zip libvncserver-a84b3d072a89e05c5aa5f702d223cfe304379293.tar.gz |
pointerClient was still static.
do not make requestedRegion empty without reason.
the cursor handling for clients which don't handle CursorShape updates was
completely broken. It originally was very complicated for performance
reasons, however, in most cases it made performance even worse, because at
idle times there was way too much checking going on, and furthermore,
sometimes unnecessary updates were inevitable.
The code now is much more elegant: the ClientRec structure knows exactly
where it last painted the cursor, and the ScreenInfo structure knows where
the cursor shall be.
As a consequence there is no more rfbDrawCursor()/rfbUndrawCursor(), no more
dontSendFramebufferUpdate, and no more isCursorDrawn. It is now possible to
have clients which understand CursorShape updates and clients which don't at
the same time.
rfbSetCursor no longer has the option freeOld; this is obsolete, as the cursor
structure knows what to free and what not.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/zippy.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/contrib/zippy.c b/contrib/zippy.c index c535b86..83be59e 100644 --- a/contrib/zippy.c +++ b/contrib/zippy.c @@ -145,7 +145,6 @@ void on_key_press (rfbBool down,rfbKeySym key,rfbClientPtr cl) case XK_b: case XK_B: - rfbUndrawCursor(cl->screen); blank_framebuffer(cl->screen->frameBuffer, 0, 0, maxx, maxy); rfbDrawString(cl->screen,&default8x16Font,20,maxy-20,"Hello, World!",0xffffff); rfbMarkRectAsModified(cl->screen,0, 0,maxx,maxy); @@ -153,7 +152,6 @@ void on_key_press (rfbBool down,rfbKeySym key,rfbClientPtr cl) break; case XK_p: case XK_P: - rfbUndrawCursor(cl->screen); /* draw_primary_colors (cl->screen->frameBuffer, 0, 0, maxx, maxy); */ draw_primary_colours_generic_ultrafast (cl->screen, 0, 0, maxx, maxy); rfbMarkRectAsModified(cl->screen,0, 0,maxx,maxy); @@ -165,7 +163,6 @@ void on_key_press (rfbBool down,rfbKeySym key,rfbClientPtr cl) exit(0); case XK_C: case XK_c: - rfbUndrawCursor(cl->screen); rfbDrawString(cl->screen,&default8x16Font,20,100,"Hello, World!",0xffffff); rfbMarkRectAsModified(cl->screen,0, 0,maxx,maxy); break; |