Yeah, the desktop is640*480. Any idea where to loook for the forced resolution?
Whatever you changed in mame.ini the last time must be the cause. Just in case, when I said "remove" the options I actually meant to restore them to their default values, not ripping them out of the file.
Above I suggested 2 *alternative* options, not 2 steps you had to combine.
Anyway, at this point my advice is to start from scratch, restore mame.ini to its original state and use any of these *alternatives*:
1 .- [ VMMaker, default 15 kHz setup + super resolutions ] + [ GroovyMAME, arcade_31, resolution 2560x0, cleanstretch 2 ]
2 .- [ VMMaker, Cools' 31 kHz setup without super resolutions ] + [ GroovyMAME, arcade_31, resolution auto, cleanstretch 0 ]