@Leatherface , @Duimon , @shenglong , @HyperspaceMadness @AcidCrash !
I had to separate my vertical and horizontal roms. Then I apply different settings for each directory.
You can use the RomLister tool to make this separation. You will need some datafiles based on Mame. With a few tweaks, you’ll be able to do the same for FinalBurn roms, since most arcade games are based on Mame’s sets.
Here is a tutorial with some details (in Spanish language). It is a little out of date, but the concept is still valid. Find the datafiles corresponding to your romset and follow the rest of the steps:
I needed to use this solution because I wanted to use appropriate overlays for each rotarion aspect.
It was the only way I found to fully solve the problem with video rotation.
The ideal would be for the core to make this correction automatically. While this condition does not exist, I follow with the separate roms.