The 8bpp PROM console uses index 0 as black, 255 as white. Update ri_devcmap

to cater. Partially addresses PR port-sparc/8121.
This commit is contained in:
ad 1999-08-13 09:59:47 +00:00
parent 94c4bdf1cc
commit 8974edc06c
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fb.c,v 1.39 1999/06/02 23:24:00 christos Exp $ */
/* $NetBSD: fb.c,v 1.40 1999/08/13 09:59:47 ad Exp $ */
/*
* Copyright (c) 1992, 1993
@ -411,7 +411,13 @@ fbrcons_init(fb)
/* Get operations set and connect to rcons */
if (rasops_init(ri, maxrow, maxcol, 0, 1))
panic("fbrcons_init: rasops_init failed!");
panic("fbrcons_init: rasops_init failed");
/* PROM sets up colormap so black is index 0x00 and white is 0xff */
if (ri->ri_depth == 8) {
ri->ri_devcmap[0] = 0x00000000;
ri->ri_devcmap[1] = 0xffffffff;
}
rc->rc_row = rc->rc_col = 0;
#if !defined(RASTERCONS_FULLSCREEN)