Honor RI_BSWAP.

This commit is contained in:
uwe 2002-01-31 11:18:07 +00:00
parent e1348c3690
commit 0778a707e9

View File

@ -1,4 +1,4 @@
/* $NetBSD: rasops8.c,v 1.13 2001/11/15 09:48:15 lukem Exp $ */
/* $NetBSD: rasops8.c,v 1.14 2002/01/31 11:18:07 uwe Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -37,13 +37,14 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.13 2001/11/15 09:48:15 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.14 2002/01/31 11:18:07 uwe Exp $");
#include "opt_rasops.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/time.h>
#include <sys/bswap.h>
#include <dev/wscons/wsdisplayvar.h>
#include <dev/wscons/wsconsio.h>
@ -199,6 +200,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) != 0)
stamp[i] = bswap32(stamp[i]);
}
}