summaryrefslogtreecommitdiffstats
path: root/contrib/zippy.c
diff options
context:
space:
mode:
authordscho <dscho>2003-07-28 12:01:07 +0000
committerdscho <dscho>2003-07-28 12:01:07 +0000
commit13b358fed1b89a7a7f8c47bc175dcb3ccae1e39b (patch)
tree8ca17b27e8b953403b93625381aa162d734c4287 /contrib/zippy.c
parenteef408c1d84c7aaceb9732dd9a7e216886d2c2f8 (diff)
downloadlibtdevnc-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.c8
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);
}
}