In the fastmame.ini
### Mame CORE video options ###
norotate 0
ror 0
rol 0
autoror 0
autorol 0
Set the appropriate number to 1
Just so you know, ror is rotate right, rol is rotate left. The autoror/autorol will rotate only for vertical games or vice versa.
For scanlines, I'm not sure because I use ddraw and they don't seem to work with that.