Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/omap don't try to init more than 256 CLUT entri...
details: https://anonhg.NetBSD.org/src/rev/6d9e354d380e
branches: trunk
changeset: 782352:6d9e354d380e
user: macallan <macallan%NetBSD.org@localhost>
date: Mon Oct 29 18:11:36 2012 +0000
description:
don't try to init more than 256 CLUT entries, no matter what colour depth
we're in
diffstat:
sys/arch/arm/omap/omapfb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e05f5c83e3ed -r 6d9e354d380e sys/arch/arm/omap/omapfb.c
--- a/sys/arch/arm/omap/omapfb.c Mon Oct 29 16:25:25 2012 +0000
+++ b/sys/arch/arm/omap/omapfb.c Mon Oct 29 18:11:36 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: omapfb.c,v 1.3 2011/07/01 20:30:21 dyoung Exp $ */
+/* $NetBSD: omapfb.c,v 1.4 2012/10/29 18:11:36 macallan Exp $ */
/*
* Copyright (c) 2010 Michael Lorenz
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.3 2011/07/01 20:30:21 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.4 2012/10/29 18:11:36 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -540,7 +540,7 @@
{
int i;
- for (i = 0; i < (1 << sc->sc_depth); i++) {
+ for (i = 0; i < 256; i++) {
omapfb_putpalreg(sc, i, sc->sc_cmap_red[i],
sc->sc_cmap_green[i], sc->sc_cmap_blue[i]);
}
Home |
Main Index |
Thread Index |
Old Index