summaryrefslogtreecommitdiffstats
path: root/font.c
diff options
context:
space:
mode:
authordscho <dscho>2002-05-02 12:53:29 +0000
committerdscho <dscho>2002-05-02 12:53:29 +0000
commitff9fbd971bdebf8eca22446139803a2647dbcf5a (patch)
tree72e85c15b93a562d22cf2e923a70d186f1d6ecb6 /font.c
parent22405c3dddfe5cb78b792f3d6b20ba1e5bd427a9 (diff)
downloadlibtdevnc-ff9fbd971bdebf8eca22446139803a2647dbcf5a.tar.gz
libtdevnc-ff9fbd971bdebf8eca22446139803a2647dbcf5a.zip
Tim's Changes
Diffstat (limited to 'font.c')
-rw-r--r--font.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/font.c b/font.c
index 4bebe44..b9d68d0 100644
--- a/font.c
+++ b/font.c
@@ -34,7 +34,7 @@ int rfbDrawChar(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
}
void rfbDrawString(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
- int x,int y,const unsigned char* string,Pixel colour)
+ int x,int y,const char* string,Pixel colour)
{
while(*string) {
x+=rfbDrawChar(rfbScreen,font,x,y,*string,colour);
@@ -100,7 +100,7 @@ int rfbDrawCharWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
}
void rfbDrawStringWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
- int x,int y,const unsigned char* string,
+ int x,int y,const char* string,
int x1,int y1,int x2,int y2,
Pixel colour,Pixel backColour)
{
@@ -111,7 +111,7 @@ void rfbDrawStringWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
}
}
-int rfbWidthOfString(rfbFontDataPtr font,const unsigned char* string)
+int rfbWidthOfString(rfbFontDataPtr font,const char* string)
{
int i=0;
while(*string) {
@@ -166,7 +166,7 @@ rfbFontDataPtr rfbLoadConsoleFont(char *filename)
if(!f) return(0);
p=(rfbFontDataPtr)malloc(sizeof(rfbFontData));
- p->data=(char*)malloc(4096);
+ p->data=(unsigned char*)malloc(4096);
if(1!=fread(p->data,4096,1,f)) {
free(p->data);
free(p);