diff options
| author | uch <uch@NetBSD.org> | 2001-08-15 15:16:53 +0000 |
|---|---|---|
| committer | uch <uch@NetBSD.org> | 2001-08-15 15:16:53 +0000 |
| commit | edcb9ebf0f8eb0011ecb4d1fef70b6925346ff63 (patch) | |
| tree | 3cf0097b5c2c5691e9eb580e6cea3f5fccef3e31 /sys/dev/hpc | |
| parent | 28a25d90584b2746a1edd214211665caa4d0d9c5 (diff) | |
fix hf_order_flags.
Diffstat (limited to 'sys/dev/hpc')
| -rw-r--r-- | sys/dev/hpc/hpcfb.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/dev/hpc/hpcfb.c b/sys/dev/hpc/hpcfb.c index 8ef81978c3b..001f62aca5f 100644 --- a/sys/dev/hpc/hpcfb.c +++ b/sys/dev/hpc/hpcfb.c @@ -1,4 +1,4 @@ -/* $NetBSD: hpcfb.c,v 1.13 2001/08/02 14:40:04 toshii Exp $ */ +/* $NetBSD: hpcfb.c,v 1.14 2001/08/15 15:16:53 uch Exp $ */ /*- * Copyright (c) 1999 @@ -46,7 +46,7 @@ static const char _copyright[] __attribute__ ((unused)) = "Copyright (c) 1999 Shin Takemura. All rights reserved."; static const char _rcsid[] __attribute__ ((unused)) = - "$NetBSD: hpcfb.c,v 1.13 2001/08/02 14:40:04 toshii Exp $"; + "$NetBSD: hpcfb.c,v 1.14 2001/08/15 15:16:53 uch Exp $"; #include <sys/param.h> #include <sys/systm.h> @@ -457,16 +457,14 @@ hpcfb_init(struct hpcfb_fbconf *fbconf, struct hpcfb_devconfig *dc) #else ri->ri_flg = RI_CURSOR; #endif - if (fbconf->hf_order_flags != 0) { - if (fbconf->hf_order_flags & HPCFB_REVORDER_BYTE) { + if (fbconf->hf_order_flags & HPCFB_REVORDER_BYTE) { #if BYTE_ORDER == BIG_ENDIAN - ri->ri_flg |= RI_BSWAP; + ri->ri_flg |= RI_BSWAP; #endif - } else { + } else { #if BYTE_ORDER == LITTLE_ENDIAN - ri->ri_flg |= RI_BSWAP; + ri->ri_flg |= RI_BSWAP; #endif - } } if (rasops_init(ri, HPCFB_MAX_ROW, HPCFB_MAX_COLUMN)) { |
