Main > Main Forum
Horizontal games on a vertical monitor
mgb:
I messed around with the resolution .ini for Metalslug and no matter what, it wouldn't load. I would select the game from Mala and it would appear to be loading but then it would kick back to Mala but the screen would be squished up.
It finally worked when I selected for hardware stretch to be applied (within Mslug.ini)
mgb:
Actually what I've found seems to work well for the horizontal games is setting the resolution for 640x288 with hardware stretch on in each horizontal game's .ini
Paladin:
--- Quote from: mgb on February 26, 2011, 12:16:20 pm ---Actually what I've found seems to work well for the horizontal games is setting the resolution for 640x288 with hardware stretch on in each horizontal game's .ini
--- End quote ---
That's exactly what I did several years ago when I had a Dynamo cabinet with 25" vertical standard res monitor.
I haven't messed with MAME for some time, so now I'm trying the same thing with my Blast City cab that has a 29" tri sync monitor. The horizontal games and front ends are all jumpy, and I can't figure out why it's different than the old Dynamo was.
Doing some web searching I found that there's a tri sync utility on the Ultimarc site that allows 640x480 non interlace 31k for tri res monitors. I'll be trying it out, and with luck I'll be able to get horizontal games going.
bitbytebit:
To get the exact resolution without stretching for a game, this is the basic formula (which is really the same as the vertical game on a horizontal monitor formula, but you technically using the games width in one and height in the other). You basically want the resolution height to be as the original horizontal games width, and the height to be the correct proportion to that (3:4, since your reversing the monitor aspect)
resolution_width = game_width * (4.0/3.0) / (3.0/4.0)
Example here for mario...
# Horizontal monitor resolution:
# mario 400x256@56.88 15.7000Khz
ModeLine "400x256x56.88" 8.164000 400 416 456 520 256 257 260 276 -HSync -VSync
# Vertical monitor resolution
# mario 400x256@59.19 16.5128Khz
ModeLine "400x256x59.19" 8.586647 400 424 464 520 256 259 262 279 -HSync -VSync
Without any stretching or aspect ratio control, the second resolution will display it nicely on a vertical oriented monitor.
In Mame you may need to change the rotate settings too for getting it the right direction, basically -rotate and -rol seem good to add to mame.
This is what I've come up with in my switchres program and it seems to work good in testing here on my monitor, with the help of Calamity he's come up with the basic formula which is great for both vertical and horizontal games. You can change the 3:4 (which is always the opposite of your desired monitor aspect ratio, like 4:3) to things like 9:16 for an HDTV wide screen, or 3:3 if you want a more square picture, or 5:7 for a slightly taller game (or wider if it's a horizontal monitor with a vertical game). It's just thinking opposite of your normal vertical on horizontal monitor calculations.
Hopefully that information helps someone, was interesting when getting this feature working in switchres to see how the calculation actually worked to avoid any stretching.
mgb:
Bitbytebit,
Thanks for the info. Thats the kinda info I was looking for.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version