Subject: A Small Video Bug :-))
To: None <port-mac68k@NetBSD.ORG>
From: Arnaud Blanchard <jblancha@pratique.fr>
List: port-mac68k
Date: 07/19/1996 18:35:25
Hi,

I noticed that , when I NetBSD_1.2ALPHA in 1,2,4 or 8 bit mode,
NetBSD says "Monochrome", all the times .
So I made a little changes in grf_mv.c, so it says the correct things
( like 256 color )

Now, when I try "startx" , in 256 color, it says

        "Fatal server error:
         I don't support color screens!

         X connection to :0.0 broken (explicit kill or server shutdown)."


--- grf_mv.c.bak        Fri Jul 19 16:52:58 1996
+++ grf_mv.c    Fri Jul 19 16:48:40 1996
@@ -49,6 +49,7 @@
 #include "nubus.h"
 #include "grfvar.h"

+extern long             videobitdepth;

 static void    load_image_data __P((caddr_t data, struct image_data *image));
 static void    grfmv_intr __P((void *vsc, int slot));
@@ -231,8 +232,8 @@
        gm->fbsize = sc->curr_mode.height * sc->curr_mode.rowbytes;
        gm->hres = image.hRes;
        gm->vres = image.vRes;
-       gm->ptype = image.pixelType;
-       gm->psize = image.pixelSize;
+       gm->ptype = 0 ;
+       gm->psize = videobitdepth ;

        strncpy(cardname, nubus_get_card_name(&sc->sc_slot),
                CARD_NAME_LEN);

/ Hope it helps, jblancha@pratique.fr