@Stiletto: This is a really nice tutorial on timing. This belongs on the Developer Wiki. --
The galaxian driver triples the horizontal resolution to render the stars correctly. Thus instead of 256x224 you get 768x224.
There is currently no way to determine this fact directly from the xml information which you also display on your side. You have to force an aspect ratio of 4:3 in this case.
Pseudo code:
aspect = x / y
if (abs(aspect - 4/3) > 0.2 ) // choose your trigger { x = y * 4 / 3 or y = x * 3 / 4 }
Galaxian : x = 768, y= 224 aspect: 3.43 ==> (aspect - 1.33 ) > 0.2 ==> x = 224 * 4 / 3 = 299
If you do not want to loose information, just do
y = 768*374 = 576
BTW, i just figured out sdlmame is having an issue with the tripled resolution as well.
|