From 9c44197de665b809132b24c7aba6d652d581e28c Mon Sep 17 00:00:00 2001 From: miod Date: Sat, 4 Jan 2014 20:28:24 +0000 Subject: [PATCH] Fix of_cmap[] size. Makes the textmode cursor reappear on vgafb (i.e. non-radeon) systems. --- sys/arch/macppc/macppc/ofw_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/macppc/macppc/ofw_machdep.c b/sys/arch/macppc/macppc/ofw_machdep.c index 56b975cce90..44300e30a10 100644 --- a/sys/arch/macppc/macppc/ofw_machdep.c +++ b/sys/arch/macppc/macppc/ofw_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofw_machdep.c,v 1.43 2013/08/28 20:47:10 mpi Exp $ */ +/* $OpenBSD: ofw_machdep.c,v 1.44 2014/01/04 20:28:24 miod Exp $ */ /* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */ /* @@ -502,7 +502,7 @@ of_setbrightness(int brightness) /* XXX this routine should also save the brightness settings in the nvram */ } -uint8_t of_cmap[256]; +uint8_t of_cmap[256 * 3]; void of_setcolors(const uint8_t *cmap, unsigned int index, unsigned int count) -- 2.20.1