Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Playing with hardware stretch  (Read 1265 times)

0 Members and 1 Guest are viewing this topic.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Playing with hardware stretch
« 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.

newmanfamilyvlogs

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1694
  • Last login:June 15, 2022, 05:20:38 pm
    • forum.arcadecontrols.com/index.php/topic,103584.msg1096585.html#msg1096585
    • Newman Family Vlogs
Re: Playing with hardware stretch
« Reply #1 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.

Well Fed Games

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1884
  • Last login:January 07, 2025, 04:42:47 pm
  • Delicious!
Re: Playing with hardware stretch
« Reply #2 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.
Completed projects: Pac bartop (Plug & Play), 30th Anniversary Pac cab (MAME), Point Blank (PS1), Centipede (arcade hardware- light restore), VS. Super Mario Bros (arcade hardware- light restore) Tetris Cocktail (SNES), Arcade Classics upright (60-in-1, then MAME), Multi-Raiden (arcade hardware). Pac Man vs.(Gamecube),

Working on: Pinball Re-theme, Homebrew arcade arena shooter

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Playing with hardware stretch
« Reply #3 on: September 14, 2011, 06:47:41 am »
Thanks guys, I will do some experimenting tonight and get back with what I find.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Playing with hardware stretch
« Reply #4 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

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Playing with hardware stretch
« Reply #5 on: September 15, 2011, 11:08:25 pm »
First off, it's 'hwstretch'. Use MAME32, so you know exactly what's on and off.
-Banned-

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Playing with hardware stretch
« Reply #6 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.