Build Your Own Arcade Controls Forum

Main => Monitor/Video Forum => Topic started by: DaOld Man on September 13, 2011, 07:23:33 pm

Title: Playing with hardware stretch
Post by: DaOld Man on September 13, 2011, 07:23:33 pm
Ok, Im using mame, and I am including the option -hws to fill the whole screen, but the very top of the screen is cut off on some, but not all games.
For instance, donkey kong has the score cut off, I can see the very bottom of the score at the top of the screen, but I cant tell what it is. The rest of the screen, the playing area, is ok.
How do I fix this?
Im using a wide screen LCD monitor.

Thanks.
Title: Re: Playing with hardware stretch
Post by: newmanfamilyvlogs on September 13, 2011, 08:30:28 pm
you would probably be best served using a build of mame that supports 'cleanstretch'. If you're looking for a 'pixel perfect' type display (rather than the softened bilinear filtering), then this will do it by stretching the image and maintaining the aspect ratio, such that it fills the longest dimension of the picture within the fixed resolution of your display, scaling by an exact interger (eg 2x, 3x, 4x).

If your screen supports 1080 lines of resolution, then a game with 270 lines of resolution would be scaled exactly 4x. Games with slightly less, say 256, would be scaled 4x to 1024 lines, giving you a 28 pixel border on the top and bottom of the image. This is of course assuming that your horizontal image would fit with whatever is in that range. Since your vertical is your most limited dimension in a widescreen monitor, i assume it will hit that first.
Title: Re: Playing with hardware stretch
Post by: Well Fed Games on September 13, 2011, 08:48:15 pm
In (one of) the versions of MAME on my cabinet (0.142), I can hit tab for menu and get to the slider controls page, which have horizontal and vertical stretch and positioning sliders. Not sure if that is what you are looking for, or if it plays well with hardware stretch, but it has helped me. The older version I am using for some games (.72) does not have this option.
Title: Re: Playing with hardware stretch
Post by: DaOld Man on September 14, 2011, 06:47:41 am
Thanks guys, I will do some experimenting tonight and get back with what I find.
Title: Re: Playing with hardware stretch
Post by: DaOld Man on September 15, 2011, 07:57:06 pm
Ok, I tried to change screen resolution in windows, didnt help.
I then saw a setting in mame.ini under "windows direct 3d 2d" called "zoom =".
It was set to 2, I changed it to a 1 and now Donkey Kong displays correctly, but Mappy doesnt look the same. The characters are blurred, looks like the resolution changed on it. (I have set windows back to the resolution it was before.)
BTW, I have mame V0.103
Title: Re: Playing with hardware stretch
Post by: Gray_Area on September 15, 2011, 11:08:25 pm
First off, it's 'hwstretch'. Use MAME32, so you know exactly what's on and off.
Title: Re: Playing with hardware stretch
Post by: DaOld Man on September 16, 2011, 06:07:08 am
First off, it's 'hwstretch'. Use MAME32, so you know exactly what's on and off.

You are absolutely correct. I dont know how I got -hws,  :banghead:

I changed the zoom back to 2 and hwstretch =1 and now Mappy looks clean, and DK is displaying all the screen top to bottom, but the game screen is displaying to the far left side of my LCD widescreen. Mappy is centered. Why does DK do different from Mappy????

Im using a frontend for the desktop PC that I made so that I can play other emulators too. I have a function in there to allow you to add arguments to the end of the command line.