From 13b358fed1b89a7a7f8c47bc175dcb3ccae1e39b Mon Sep 17 00:00:00 2001 From: dscho Date: Mon, 28 Jul 2003 12:01:07 +0000 Subject: fixed maxRectsPerUpdate with Tight encoding bug; some autoconfing; stderr should not be used in a library (use rfbLog instead) --- vncterm/VNConsole.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vncterm/VNConsole.c') diff --git a/vncterm/VNConsole.c b/vncterm/VNConsole.c index 72e2fdc..cd80288 100644 --- a/vncterm/VNConsole.c +++ b/vncterm/VNConsole.c @@ -52,7 +52,7 @@ void vcDrawCursor(vncConsolePtr c) { rfbDrawCursor(c->rfbScreen); if(c->cursorActive && !c->cursorIsDrawn && c->yheight && c->xwidth) { - /* fprintf(stderr,"DrawCursor: %d,%d\n",c->x,c->y); */ + /* rfbLog("DrawCursor: %d,%d\n",c->x,c->y); */ vcDrawOrHideCursor(c); } } @@ -63,7 +63,7 @@ void vcHideCursor(vncConsolePtr c) if(c->currentlyMarking) vcUnmark(c); if(c->cursorIsDrawn) { - /* fprintf(stderr,"HideCursor: %d,%d\n",c->x,c->y); */ + /* rfbLog("HideCursor: %d,%d\n",c->x,c->y); */ vcDrawOrHideCursor(c); } } @@ -158,7 +158,7 @@ void vcScroll(vncConsolePtr c,int lineCount) if(lineCount==0) return; - /* fprintf(stderr,"begin scroll\n"); */ + /* rfbLog("begin scroll\n"); */ vcHideCursor(c); c->dontDrawCursor=TRUE; @@ -197,7 +197,7 @@ void vcScroll(vncConsolePtr c,int lineCount) memset(c->attributeBuffer+y1/c->cHeight*c->width,0x07, (y2-y1)/c->cHeight*c->width); #endif - /* fprintf(stderr,"end scroll\n"); */ + /* rfbLog("end scroll\n"); */ } void vcCheckCoordinates(vncConsolePtr c) @@ -256,7 +256,7 @@ void vcPutCharColour(vncConsolePtr c,unsigned char ch,unsigned char foreColour,u } while(c->x%8); break; default: - fprintf(stderr,"putchar of unknown character: %c(%d).\n",ch,ch); + rfbLog("putchar of unknown character: %c(%d).\n",ch,ch); vcPutChar(c,' '); } } else { @@ -420,7 +420,7 @@ void vcPtrAddEventProc(int buttonMask,int x,int y,rfbClientPtr cl) c->markEnd=pos; vcToggleMarkCell(c,pos); } else { - DEBUG(fprintf(stderr,"markStart: %d, markEnd: %d, pos: %d\n", + DEBUG(rfbLog("markStart: %d, markEnd: %d, pos: %d\n", c->markStart,c->markEnd,pos)); if(c->markEnd!=pos) { if(c->markEnd