summaryrefslogtreecommitdiffstats
path: root/libvncserver/font.c
diff options
context:
space:
mode:
authordscho <dscho>2005-01-14 21:16:04 +0000
committerdscho <dscho>2005-01-14 21:16:04 +0000
commit8d2ae4ea5169caa7164e29a02273e24a14c8ba3f (patch)
tree815ca870a01492d0e7e97b665e3f5eb04557de78 /libvncserver/font.c
parent135767a93eb9cd4830352bd10aa46989843672c5 (diff)
downloadlibtdevnc-8d2ae4ea5169caa7164e29a02273e24a14c8ba3f.tar.gz
libtdevnc-8d2ae4ea5169caa7164e29a02273e24a14c8ba3f.zip
add comment "if col=bcol, assume background is transparent"
Diffstat (limited to 'libvncserver/font.c')
-rwxr-xr-xlibvncserver/font.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvncserver/font.c b/libvncserver/font.c
index 120ef7b..18c1bbb 100755
--- a/libvncserver/font.c
+++ b/libvncserver/font.c
@@ -24,7 +24,7 @@ int rfbDrawChar(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
d=*data;
data++;
}
- if(d&0x80 && y+j>=0 && x+i>=0 && y+j<rfbScreen->height && x+i<rfbScreen->width)
+ if(d&0x80)
memcpy(rfbScreen->frameBuffer+(y+j)*rowstride+(x+i)*bpp,colour,bpp);
d<<=1;
}
@@ -43,6 +43,7 @@ void rfbDrawString(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
}
/* TODO: these two functions need to be more efficient */
+/* if col==bcol, assume transparent background */
int rfbDrawCharWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
int x,int y,unsigned char c,
int x1,int y1,int x2,int y2,