summaryrefslogtreecommitdiffstats
path: root/cursor.c
diff options
context:
space:
mode:
authordscho <dscho>2002-08-19 10:41:11 +0000
committerdscho <dscho>2002-08-19 10:41:11 +0000
commit598c460ceb842d0cf9df89f93642a1594f35b993 (patch)
tree6dc08fdcc2a9065fb9f75e759b725c1cf7c372e0 /cursor.c
parentfde8958dc5e4e226a76ae0a26d751b6f185cf7ee (diff)
downloadlibtdevnc-598c460ceb842d0cf9df89f93642a1594f35b993.tar.gz
libtdevnc-598c460ceb842d0cf9df89f93642a1594f35b993.zip
unwarn compilation
Diffstat (limited to 'cursor.c')
-rw-r--r--cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cursor.c b/cursor.c
index b83c8be..fa28a82 100644
--- a/cursor.c
+++ b/cursor.c
@@ -143,7 +143,7 @@ rfbSendCursorShape(cl)
bpp2=cl->format.bitsPerPixel/8;
(*cl->translateFn)(cl->translateLookupTable,
&(cl->screen->rfbServerFormat),
- &cl->format, pCursor->richSource,
+ &cl->format, (char*)pCursor->richSource,
&cl->updateBuf[cl->ublen],
pCursor->width*bpp1, pCursor->width, pCursor->height);
@@ -241,7 +241,7 @@ rfbCursorPtr rfbMakeXCursor(int width,int height,char* cursorString,char* maskSt
for(i=0,bit=0x80;i<width;i++,bit=(bit&1)?0x80:bit>>1,cp++)
if(*cp!=' ') cursor->mask[j*w+i/8]|=bit;
} else
- cursor->mask = (unsigned char*)rfbMakeMaskForXCursor(width,height,cursor->source);
+ cursor->mask = (unsigned char*)rfbMakeMaskForXCursor(width,height,(char*)cursor->source);
return(cursor);
}