Subject: Making X work on MFB
To: None <port-pmax@netbsd.org>
From: maximum entropy <entropy@zippy.bernstein.com>
List: port-pmax
Date: 05/03/1999 22:27:44
This patch allows Xpmax to run on the turbochannel mfb.  Without this,
it doesn't work at all.

Please pull whatever strings are necessary to get this pulled up into
1.4.

I'm going to eat dinner now.  I'll file a PR afterwards.

--- /usr/xsrc/xc/programs/Xserver/hw/netbsd/pmax/pmax_io.c-orig	Sat Apr 17 13:20:11 1999
+++ /usr/xsrc/xc/programs/Xserver/hw/netbsd/pmax/pmax_io.c	Mon May  3 22:25:18 1999
@@ -395,15 +395,8 @@
     		break;
 		
 	case PMAX_FBTYPE_MFB:
-		/*
-		 * XXX mfb is mono, but has 1 byte per pixel (only bit 0
-		 * is significant). Am I doing this right?
-		 */
-		defaultColorVisualClass = StaticGray;
-		cfbSetVisualTypes(1, StaticGray, 8);
-	
 		if (!cfbScreenInit(pScreen, scrInfo->bitmap, fb.fb_width, 
-		    fb.fb_height, dpix, dpiy, fb.fb_width)) {
+		    fb.fb_height, dpix, dpiy, 2048)) {
 		    	close(fdPM);
 		    	return (FALSE);
 		}


--
entropy -- it's not just a good idea, it's the second law.