[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] XaAES tempering with XBIOS resolution



Here it is.

On Wed, Jan 29, 2014 at 10:36 PM, Jo Even Skarstein <joska@online.no> wrote:
Well, is 80-column hi-colour VGA a valid mode on a standard
Falcon/Videl? I'd say it isn't. The question is whether XaAES should
bother or not.

The question was actually answered by Alan two and half years ago but nobody has bothered to do it: http://mikro.naprvyraz.sk/mint/201105/msg00068.html

Also, there isn't a code which would force 80 columns for 1-bitplane resolutions.

--
MiKRO / Mystic Bytes
http://mikro.atari.org
Index: k_init.c
===================================================================
RCS file: /mint/freemint/xaaes/src.km/k_init.c,v
retrieving revision 1.140
diff -u -r1.140 k_init.c
--- k_init.c	24 Mar 2013 10:27:37 -0000	1.140
+++ k_init.c	30 Jan 2014 05:41:03 -0000
@@ -685,23 +685,10 @@
 #ifndef ST_ONLY
 			else if (vdo == 0x00030000L)
 			{
-				short nvmode;
-
-
-				/* Ronald Andersson:
-				 * This should be the method for falcon!
-				 */
-				nvmode = vcheckmode(cfg.videomode);
-				if ((nvmode & (1 << 4)) &&	/* VGA_FALCON */
-				    (nvmode & 7) == 4)		/* is 16bit */
-				{
-					nvmode &= ~(1 << 3);		/* Set 320 pixels */
-				}
-
-				work_out[45] = nvmode;
+				work_out[45] = vcheckmode(cfg.videomode);;
 				mode = 5;
-				BLOG((false, "Falcon video: videomode %d(%x),mode=%d,nvmode=%x", cfg.videomode, cfg.videomode, mode, nvmode));
-// 				display("Falcon video: mode %x, %x", cfg.videomode, nvmode);
+				BLOG((false, "Falcon video: videomode %d(%x),mode=%d,nvmode=%x", cfg.videomode, cfg.videomode, mode, work_out[45]));
+// 				display("Falcon video: mode %x, %x", cfg.videomode, work_out[45]);
 			}
 			else
 #endif