summaryrefslogtreecommitdiff
path: root/lib/libXfont/src/bitmap/bitmap.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2014-09-27 17:42:16 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2014-09-27 17:42:16 +0000
commit51b0f9ed188811d70f54ebfa527706d8fc346184 (patch)
tree48e9483d968453ba1b7d3e2626b10bb6d9ee4c29 /lib/libXfont/src/bitmap/bitmap.c
parent23b49e80e5298d9e6bb8f43778cff767717d93ea (diff)
Update to libXfont 1.5.0
Tested together with xserver 1.16.1 by naddy@, jsg@ & kettenis@
Diffstat (limited to 'lib/libXfont/src/bitmap/bitmap.c')
-rw-r--r--lib/libXfont/src/bitmap/bitmap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libXfont/src/bitmap/bitmap.c b/lib/libXfont/src/bitmap/bitmap.c
index 9b20fafe9..0a379eb08 100644
--- a/lib/libXfont/src/bitmap/bitmap.c
+++ b/lib/libXfont/src/bitmap/bitmap.c
@@ -63,8 +63,12 @@ bitmapGetGlyphs(FontPtr pFont, unsigned long count, unsigned char *chars,
case Linear8Bit:
case TwoD8Bit:
- if (pFont->info.firstRow > 0)
+ if (pFont->info.firstRow > 0) {
+ if (pDefault)
+ while (count--)
+ *glyphs++ = pDefault;
break;
+ }
if (pFont->info.allExist && pDefault) {
while (count--) {
c = (*chars++) - firstCol;