summaryrefslogtreecommitdiff
path: root/sys/dev/rasops
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-01-08 17:18:06 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-01-08 17:18:06 +0000
commit172ff5f388c318a04fcb810d3f546335e60117da (patch)
treea414469ca79b12e6c72bd8b5e3efe512e3a752ed /sys/dev/rasops
parent40ed13f63e36dd3f5170c4bdd980e73b83466f6a (diff)
Fix stamp creation for big-endian systems. Makes mac68k happy at 16bpp.
Diffstat (limited to 'sys/dev/rasops')
-rw-r--r--sys/dev/rasops/rasops15.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/rasops/rasops15.c b/sys/dev/rasops/rasops15.c
index 128d00dc0c1..51e7d3b3214 100644
--- a/sys/dev/rasops/rasops15.c
+++ b/sys/dev/rasops/rasops15.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rasops15.c,v 1.4 2002/07/27 22:17:49 miod Exp $ */
+/* $OpenBSD: rasops15.c,v 1.5 2006/01/08 17:18:05 miod Exp $ */
/* $NetBSD: rasops15.c,v 1.7 2000/04/12 14:22:29 pk Exp $ */
/*-
@@ -205,10 +205,10 @@ rasops15_makestamp(ri, attr)
stamp[i + 1] = (i & 4 ? fg : bg);
stamp[i + 1] |= ((i & 2 ? fg : bg) << 16);
#else
- stamp[i] = (i & 2 ? fg : bg);
- stamp[i] |= ((i & 4 ? fg : bg) << 16);
- stamp[i + 1] = (i & 8 ? fg : bg);
- stamp[i + 1] |= ((i & 16 ? fg : bg) << 16);
+ stamp[i + 1] = (i & 2 ? fg : bg);
+ stamp[i + 1] |= ((i & 4 ? fg : bg) << 16);
+ stamp[i] = (i & 8 ? fg : bg);
+ stamp[i] |= ((i & 16 ? fg : bg) << 16);
#endif
}
}