From: miod Date: Sat, 4 Jan 2014 20:28:24 +0000 (+0000) Subject: Fix of_cmap[] size. Makes the textmode cursor reappear on vgafb (i.e. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9c44197de665b809132b24c7aba6d652d581e28c;p=openbsd Fix of_cmap[] size. Makes the textmode cursor reappear on vgafb (i.e. non-radeon) systems. --- 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)