From 11d64787ee113b4767d0f2e96e8b2ded6999064e Mon Sep 17 00:00:00 2001 From: dscho Date: Thu, 27 Sep 2001 15:42:54 +0000 Subject: added setTranslateFunction as member of rfbScreenInfo, cursor may be NULL (no cursor). --- cursor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cursor.c') diff --git a/cursor.c b/cursor.c index 9168b31..f34a397 100644 --- a/cursor.c +++ b/cursor.c @@ -370,7 +370,10 @@ void rfbDrawCursor(rfbClientPtr cl) rfbCursorPtr c=s->cursor; int i,j,x1,x2,y1,y2,i1,j1,bpp=s->rfbServerFormat.bitsPerPixel/8, rowstride=s->paddedWidthInBytes, - bufSize=c->width*c->height*bpp,w=(c->width+7)/8; + bufSize,w; + if(!c) return; + bufSize=c->width*c->height*bpp; + w=(c->width+7)/8; if(s->cursorIsDrawn) rfbUndrawCursor(cl); if(s->underCursorBufferLen