diff options
| author | 2002-07-25 19:18:44 +0000 | |
|---|---|---|
| committer | 2002-07-25 19:18:44 +0000 | |
| commit | adbb5e8965b8ce4f7053f6d680354c3ec537c9c7 (patch) | |
| tree | 083aa4cb9c086831208eeaa75a3a50a6466f2203 | |
| parent | Adapt the framebuffer code to the WSDISPLAY_TYPE constant changes, and (diff) | |
| download | wireguard-openbsd-adbb5e8965b8ce4f7053f6d680354c3ec537c9c7.tar.xz wireguard-openbsd-adbb5e8965b8ce4f7053f6d680354c3ec537c9c7.zip | |
If passed RI_BSWAP, swap32 the stamp
| -rw-r--r-- | sys/dev/rasops/rasops8.c | 4 |
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]); } } |
