Previous Thread
Next Thread
Print Thread
How Do I Change CoCo Low-Res Graphics White Border #64984 10/13/10 03:51 AM
Joined: Oct 2010
Posts: 12
S
swallis Offline OP
Member
OP Offline
Member
S
Joined: Oct 2010
Posts: 12
Does anyone know a way to change the CoCo's white border on the low-resolution graphics screens to something else like black? The brightness from it is really rough on the eyes!
Maybe an option can be added to the MESS Tab menu, or perhaps the CoCo driver can be edited? I don't know much about the technical workings of MESS.

Re: How Do I Change CoCo Low-Res Graphics White Border [Re: swallis] #64985 10/13/10 04:24 AM
Joined: Feb 2000
Posts: 207
T
tlindner Offline
Senior Member
Offline
Senior Member
T
Joined: Feb 2000
Posts: 207
Which lo res graphics screen? Set/reset or PMODE?


tim lindner
tlindner@macmess.org
Re: How Do I Change CoCo Low-Res Graphics White Border [Re: tlindner] #64991 10/13/10 04:19 PM
Joined: Oct 2010
Posts: 12
S
swallis Offline OP
Member
OP Offline
Member
S
Joined: Oct 2010
Posts: 12
I'm referring to the PMODE screen. I know the genuine CoCo has a white border, but it is VERY hard on the eyes. I think it would be REALLY nice if there was a way to make it black instead.

Last edited by swallis; 10/13/10 04:20 PM.
Re: How Do I Change CoCo Low-Res Graphics White Border [Re: swallis] #64995 10/13/10 05:38 PM
Joined: Dec 2007
Posts: 301
R
Robert Gault Offline
Senior Member
Offline
Senior Member
R
Joined: Dec 2007
Posts: 301
The way you reduce the glare on a real Coco is turn down the contrast and/or brightness of the monitor. Why don't you adjust your monitor?

Re: How Do I Change CoCo Low-Res Graphics White Border [Re: Robert Gault] #64999 10/14/10 01:19 AM
Joined: Dec 1999
Posts: 1,173
J
Justin Offline
Very Senior Member
Offline
Very Senior Member
J
Joined: Dec 1999
Posts: 1,173
You can also simulate monitor controls by using the "Slider Controls" section of the MESS Tab menu.

Re: How Do I Change CoCo Low-Res Graphics White Border [Re: Justin] #65000 10/14/10 02:43 AM
Joined: Oct 2010
Posts: 12
S
swallis Offline OP
Member
OP Offline
Member
S
Joined: Oct 2010
Posts: 12
Thats a good idea, but I don't really want the whole screen turned down, just the white border. My color/brightness levels are set the way I like them. If I play Donkey King for example, the game looks the way I want it to, but after 30 to 60 minutes my eyes tell me that the white border is too much and I either have to find a game that doesn't run in PMODE4 or quit MESS and play something else.

Re: How Do I Change CoCo Low-Res Graphics White Border [Re: swallis] #65001 10/14/10 02:56 AM
Joined: May 2004
Posts: 886
D
Duke Online Content
Senior Member
Online Content
Senior Member
D
Joined: May 2004
Posts: 886
You can also use the internal monitor controls to stretch the border out of the visible area.

Re: How Do I Change CoCo Low-Res Graphics White Border [Re: Duke] #65015 10/14/10 03:53 PM
Joined: Oct 2010
Posts: 12
S
swallis Offline OP
Member
OP Offline
Member
S
Joined: Oct 2010
Posts: 12
That works, but every time I use the CoCo 3 hi-res graphics mode the screen is cropped, so I have to change these settings back. When I run a low-res program I have to change them again.

Re: How Do I Change CoCo Low-Res Graphics White Border [Re: swallis] #65022 10/14/10 07:39 PM
Joined: Sep 2006
Posts: 131
S
Skito Offline
Senior Member
Offline
Senior Member
S
Joined: Sep 2006
Posts: 131
A hiding borders toggle can be very handy even though it doesn't follow the true emulation. A friend sent me this patch, works really well for the spectrum system, perhaps a similar thing can be done for the coco. You'll have to find the visible border parameters, maybe change the toggle to trinary if you have different croping res modes and adjust for the coco driver. If you get this done I'd like a copy of your coco patch.

Code:
diff -Nru mames/orig.SRC/mess/drivers/spectrum.c mames/src/mess/drivers/spectrum.c
--- mames/orig.SRC/mess/drivers/spectrum.c	2010-08-02 17:50:24.000000000 -0700
+++ mames/src/mess/drivers/spectrum.c	2010-08-03 12:26:36.000000000 -0700
@@ -578,6 +578,11 @@
 	PORT_CONFSETTING(	0x80, "Issue 3" )
 	PORT_BIT(0x7f, IP_ACTIVE_LOW, IPT_UNUSED)
 
+	PORT_START("OPTIONS") /* [17] */
+	PORT_CONFNAME(0x01, 0x00, "Hide borders")
+	PORT_CONFSETTING( 0x00, DEF_STR( No ))
+	PORT_CONFSETTING( 0x01, DEF_STR( Yes ))
+
 	PORT_INCLUDE( spec_joys )
 INPUT_PORTS_END
 
diff -Nru mames/orig.SRC/mess/includes/spectrum.h mames/src/mess/includes/spectrum.h
--- mames/orig.SRC/mess/includes/spectrum.h	2010-08-02 17:50:24.000000000 -0700
+++ mames/src/mess/includes/spectrum.h	2010-08-03 12:26:36.000000000 -0700
@@ -28,6 +28,11 @@
 #define SPEC_RIGHT_BORDER  48   /* Number of right hand border pixels */
 #define SPEC_SCREEN_WIDTH (SPEC_LEFT_BORDER + SPEC_DISPLAY_XSIZE + SPEC_RIGHT_BORDER)
 
+#define SPEC_VISIBLE_TOP_BORDER    48
+#define SPEC_VISIBLE_BOTTOM_BORDER 56
+#define SPEC_VISIBLE_LEFT_BORDER   48
+#define SPEC_VISIBLE_RIGHT_BORDER  48
+
 #define SPEC_LEFT_BORDER_CYCLES   24   /* Cycles to display left hand border */
 #define SPEC_DISPLAY_XSIZE_CYCLES 128  /* Horizontal screen resolution */
 #define SPEC_RIGHT_BORDER_CYCLES  24   /* Cycles to display right hand border */
@@ -51,6 +56,11 @@
 #define TS2068_RIGHT_BORDER  96   /* Number of right hand border pixels */
 #define TS2068_SCREEN_WIDTH (TS2068_LEFT_BORDER + TS2068_DISPLAY_XSIZE + TS2068_RIGHT_BORDER)
 
+#define TS2068_VISIBLE_TOP_BORDER    32
+#define TS2068_VISIBLE_BOTTOM_BORDER 32
+#define TS2068_VISIBLE_LEFT_BORDER   96
+#define TS2068_VISIBLE_RIGHT_BORDER  96
+
 class spectrum_state
 {
 public:
diff -Nru mames/orig.SRC/mess/video/spectrum.c mames/src/mess/video/spectrum.c
--- mames/orig.SRC/mess/video/spectrum.c	2010-08-02 17:50:24.000000000 -0700
+++ mames/src/mess/video/spectrum.c	2010-08-03 12:26:38.000000000 -0700
@@ -118,7 +118,15 @@
 	int x, y, b, scrx, scry;
 	unsigned short ink, pap;
 	unsigned char *attr, *scr;
-		int full_refresh = 1;
+	int full_refresh = 1;
+	int hide_borders;
+	
+	hide_borders = input_port_read(screen->machine, "OPTIONS") & 0x01;
+
+	screen->machine->primary_screen->set_visible_area( SPEC_LEFT_BORDER - (hide_borders ? 0 : SPEC_VISIBLE_LEFT_BORDER)
+		, SPEC_LEFT_BORDER + SPEC_DISPLAY_XSIZE + (hide_borders ? 0 : SPEC_VISIBLE_RIGHT_BORDER) - 1
+		, SPEC_TOP_BORDER - (hide_borders ? 0 : SPEC_VISIBLE_TOP_BORDER)
+		, SPEC_TOP_BORDER + SPEC_DISPLAY_YSIZE + (hide_borders ? 0 : SPEC_VISIBLE_BOTTOM_BORDER) - 1);
 
 	scr=state->screen_location;
 


HARP
-skito
Re: How Do I Change CoCo Low-Res Graphics White Border [Re: Skito] #65030 10/14/10 10:57 PM
Joined: May 2004
Posts: 1,579
H
Haze Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: May 2004
Posts: 1,579
you could just create a layout for the system, which crops the borders, much like NeoGeo has..


Who's Online Now
0 registered members (), 156 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,676
Posts113,824
Members4,859
Most Online418
Aug 14th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3