A last change to colors.c. This code:
int i, cbpp, c; cbpp = 0; for (i=0; i < 3; ++i) { c = DRVINFO->actmode.extinfo->cprec[i] + DRVINFO->actmode.extinfo->cpos[i]; if ( c > cbpp ) cbpp = c; }
breaks the 32H driver, so I think we must use this (and be confident that GRX drivers now what they are doing):
int cbpp = 0; for (i=0; i < 3; ++i) cbpp += DRVINFO->actmode.extinfo->cprec[i];
And a patch to modetest to work in 32 bpp modes:
*** modetest.old Sun Jan 21 02:53:42 2001 --- modetest.c Mon Mar 5 23:19:26 2001 *************** *** 178,185 **** i--; GrSetMode( ! GR_width_height_color_graphics, grmodes[i].w, grmodes[i].h, ! 1L << grmodes[i].bpp ); if(grmodes[i].bpp<15) { --- 178,185 ---- i--; GrSetMode( ! GR_width_height_bpp_graphics, grmodes[i].w, grmodes[i].h, ! grmodes[i].bpp ); if(grmodes[i].bpp<15) {