diff options
author | dscho <dscho> | 2005-01-14 21:16:51 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-01-14 21:16:51 +0000 |
commit | 2d03c071df60702c931ad4b5d23590633a3531cd (patch) | |
tree | 8f90a9293721db66a5e0bc836ffeebcdabcaf423 | |
parent | 8d2ae4ea5169caa7164e29a02273e24a14c8ba3f (diff) | |
download | libvncserver-2d03c071df60702c931ad4b5d23590633a3531cd.zip libvncserver-2d03c071df60702c931ad4b5d23590633a3531cd.tar.gz |
reverted segfault fix; use rfbDrawCharWithClip
-rw-r--r-- | examples/example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example.c b/examples/example.c index f0084c1..7c6c3e3 100644 --- a/examples/example.c +++ b/examples/example.c @@ -197,7 +197,7 @@ void dokey(rfbBool down,rfbKeySym key,rfbClientPtr cl) int x1=cd->oldx,y1=cd->oldy,x2,y2; if(cl->screen->cursorIsDrawn) rfbUndrawCursor(cl->screen); - cd->oldx+=rfbDrawChar(cl->screen,&radonFont,cd->oldx,cd->oldy,(char)key,0x00ffffff); + cd->oldx+=rfbDrawCharWithClip(cl->screen,&radonFont,cd->oldx,cd->oldy,(char)key,0,0,cl->screen->width,cl->screen->height,0x00ffffff,0x00ffffff); rfbFontBBox(&radonFont,(char)key,&x1,&y1,&x2,&y2); rfbMarkRectAsModified(cl->screen,x1,y1,x2-1,y2-1); } |