summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2009-06-01 17:41:28 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2009-06-01 17:41:28 +0000
commitf5deafb272a62d5cf541c0d5ded06c603823ad2f (patch)
tree014e6c1a1042e2379d8531124b7049da1267c3c2 /sys
parent4d7936884a155230f96c477b91ad4e1ee2b1b1f9 (diff)
Allow a font width other than 8 pixels.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/udl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/udl.c b/sys/dev/usb/udl.c
index 25e72362511..d5f2d508458 100644
--- a/sys/dev/usb/udl.c
+++ b/sys/dev/usb/udl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udl.c,v 1.15 2009/06/01 15:47:38 mglocker Exp $ */
+/* $OpenBSD: udl.c,v 1.16 2009/06/01 17:41:27 mglocker Exp $ */
/*
* Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org>
@@ -1320,7 +1320,7 @@ udl_draw_char(struct udl_softc *sc, uint32_t x, uint32_t y,
fontbits = *fontchar;
line = (uint16_t *)buf;
- for (j = 7; j != -1; j--) {
+ for (j = (font->fontwidth - 1); j != -1; j--) {
luc = 1 << j;
if (fontbits & luc)
lrgb16 = htobe16(fg);