diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-08-03 18:42:07 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-08-03 18:42:07 +0000 |
commit | 2b96bd491076aae2fdac662a6166a97d4fc90ecf (patch) | |
tree | 52c7fe91243ba89a0edccf7a9038d1ae3896d332 /sys/dev/rasops/rasops1.c | |
parent | 3f309a50a7df092f1c0c2f8dc4217c9cf401e247 (diff) |
Since rasops is big-endian internally (because it's the logical choice
for frame buffer work), it is no surprise that the less-than-8-bpp code
is completely wrong when run on a little endian machine, and only works
by accident if character cells are 8-bit wide.
Fix the BE<->LE conversions, so that now rasops1 works in all cases.
rasops2 and rasops4 might still need some help, but I'm not in a hurry to
meet a 4bpp big-endian frame buffer on a little-endian system...
Diffstat (limited to 'sys/dev/rasops/rasops1.c')
-rw-r--r-- | sys/dev/rasops/rasops1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/rasops/rasops1.c b/sys/dev/rasops/rasops1.c index 50387b59125..7af55d41e21 100644 --- a/sys/dev/rasops/rasops1.c +++ b/sys/dev/rasops/rasops1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rasops1.c,v 1.4 2002/07/27 22:17:49 miod Exp $ */ +/* $OpenBSD: rasops1.c,v 1.5 2006/08/03 18:42:06 miod Exp $ */ /* $NetBSD: rasops1.c,v 1.11 2000/04/12 14:22:29 pk Exp $ */ /*- @@ -63,6 +63,7 @@ void rasops1_init(ri) struct rasops_info *ri; { + rasops_masks_init(); switch (ri->ri_font->fontwidth) { #ifndef RASOPS_SMALL |