diff options
Diffstat (limited to 'apps/plugins/lib/gray_putsxy.c')
-rw-r--r-- | apps/plugins/lib/gray_putsxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/gray_putsxy.c b/apps/plugins/lib/gray_putsxy.c index 906b0e1b38..9b34ad7a65 100644 --- a/apps/plugins/lib/gray_putsxy.c +++ b/apps/plugins/lib/gray_putsxy.c | |||
@@ -53,8 +53,8 @@ void gray_putsxy(int x, int y, const unsigned char *str) | |||
53 | 53 | ||
54 | /* get proportional width and glyph bits */ | 54 | /* get proportional width and glyph bits */ |
55 | width = pf->width ? pf->width[ch] : pf->maxwidth; | 55 | width = pf->width ? pf->width[ch] : pf->maxwidth; |
56 | bits = pf->bits + (pf->offset ? pf->offset[ch] | 56 | bits = pf->bits + (pf->offset ? pf->offset[ch] : |
57 | : MULU16(pf->height, ch)); | 57 | MULU16((pf->height + 7) / 8, MULU16(pf->maxwidth, ch))); |
58 | 58 | ||
59 | gray_drawbitmap((const unsigned char*) bits, x, y, width, pf->height, | 59 | gray_drawbitmap((const unsigned char*) bits, x, y, width, pf->height, |
60 | width); | 60 | width); |