Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/rasops rasops8 expects the colour value replicated i...
details: https://anonhg.NetBSD.org/src/rev/d45f3d51edb9
branches: trunk
changeset: 772471:d45f3d51edb9
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Jan 04 20:17:05 2012 +0000
description:
rasops8 expects the colour value replicated in every byte in devcmap[], so
fix that for r3g3b2
diffstat:
sys/dev/rasops/rasops.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r f344f500e950 -r d45f3d51edb9 sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c Wed Jan 04 20:16:20 2012 +0000
+++ b/sys/dev/rasops/rasops.c Wed Jan 04 20:17:05 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops.c,v 1.68 2011/12/28 08:36:46 macallan Exp $ */
+/* $NetBSD: rasops.c,v 1.69 2012/01/04 20:17:05 macallan Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.68 2011/12/28 08:36:46 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.69 2012/01/04 20:17:05 macallan Exp $");
#include "opt_rasops.h"
#include "rasops_glue.h"
@@ -841,7 +841,10 @@
/* Fill the word for generic routines, which want this */
if (ri->ri_depth == 24)
c = c | ((c & 0xff) << 24);
- else if (ri->ri_depth <= 16)
+ else if (ri->ri_depth == 8) {
+ c = c | (c << 8);
+ c |= c << 16;
+ } else if (ri->ri_depth <= 16)
c = c | (c << 16);
/* 24bpp does bswap on the fly. {32,16,15}bpp do it here. */
Home |
Main Index |
Thread Index |
Old Index