diff options
author | dscho <dscho> | 2003-07-28 12:01:07 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-07-28 12:01:07 +0000 |
commit | 13b358fed1b89a7a7f8c47bc175dcb3ccae1e39b (patch) | |
tree | 8ca17b27e8b953403b93625381aa162d734c4287 /contrib/zippy.c | |
parent | eef408c1d84c7aaceb9732dd9a7e216886d2c2f8 (diff) | |
download | libtdevnc-13b358fed1b89a7a7f8c47bc175dcb3ccae1e39b.tar.gz libtdevnc-13b358fed1b89a7a7f8c47bc175dcb3ccae1e39b.zip |
fixed maxRectsPerUpdate with Tight encoding bug; some autoconfing; stderr should not be used in a library (use rfbLog instead)
Diffstat (limited to 'contrib/zippy.c')
-rw-r--r-- | contrib/zippy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/zippy.c b/contrib/zippy.c index 79179a1..fe18a74 100644 --- a/contrib/zippy.c +++ b/contrib/zippy.c @@ -148,7 +148,7 @@ void on_key_press (Bool down,KeySym key,rfbClientPtr cl) 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); - fprintf (stderr, "Framebuffer blanked\n"); + rfbLog("Framebuffer blanked\n"); break; case XK_p: case XK_P: @@ -156,11 +156,11 @@ void on_key_press (Bool down,KeySym key,rfbClientPtr cl) /* 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); - fprintf (stderr, "Primary colors displayed\n"); + rfbLog("Primary colors displayed\n"); break; case XK_Q: case XK_q: - fprintf (stderr, "Exiting now\n"); + rfbLog("Exiting now\n"); exit(0); case XK_C: case XK_c: @@ -169,7 +169,7 @@ void on_key_press (Bool down,KeySym key,rfbClientPtr cl) rfbMarkRectAsModified(cl->screen,0, 0,maxx,maxy); break; default: - fprintf (stderr, "The %c key was pressed\n", (char) key); + rfbLog("The %c key was pressed\n", (char) key); } } |