summaryrefslogtreecommitdiff
path: root/sys/dev/rasops/rasops8.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-07-25 19:18:45 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-07-25 19:18:45 +0000
commit2d98f6e07641ed0fb1d4817e207dace9731f5edf (patch)
treee5ac9588b4e775a5aacb295f5ad43749b1d7e2b2 /sys/dev/rasops/rasops8.c
parentb10827af3e24cd3c71ca74f41942c9f7aff3945c (diff)
If passed RI_BSWAP, swap32 the stamp
Diffstat (limited to 'sys/dev/rasops/rasops8.c')
-rw-r--r--sys/dev/rasops/rasops8.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/rasops/rasops8.c b/sys/dev/rasops/rasops8.c
index 7865de05bb2..31f261fa079 100644
--- a/sys/dev/rasops/rasops8.c
+++ b/sys/dev/rasops/rasops8.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rasops8.c,v 1.4 2002/05/29 00:22:10 fgsch Exp $ */
+/* $OpenBSD: rasops8.c,v 1.5 2002/07/25 19:18:44 jason Exp $ */
/* $NetBSD: rasops8.c,v 1.8 2000/04/12 14:22:29 pk Exp $ */
/*-
@@ -195,6 +195,8 @@ rasops8_makestamp(ri, attr)
stamp[i] |= ((i & 4 ? fg : bg) << 16);
stamp[i] |= ((i & 8 ? fg : bg) << 24);
#endif
+ if (ri->ri_flg & RI_BSWAP)
+ stamp[i] = swap32(stamp[i]);
}
}