PersistentInsistence wrote: ↑
Fri Apr 30, 2021 8:23 pm
Does MAME have flags to indicate which way round the output video is displayed?
This isn't too bad for landscape games, but with portrait games I need to have a value to tell me if it's L>R or R>L.
Failing that, is there a way for all portrait games to be displayed in one direction only, or would they all need to be individually set?
You can determine the original orientation from extracting the information from the -listxml output. In particular, the <display tag=
In that line the important setting is rotate=
degrees value which MAME has to rotate the image to show it on screen. Most horizontal screens will show 0 and some require 180 (flipped). Vertical screens show either "90" (rotated right) or "270" (rotated left).
You can use the .ini commands rol, ror, autorol, autoror
to have the orientation changed.
You should be able to divine enough information from that to do what you want.