MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

couriersud
Reged: 03/27/07
Posts: 214
Send PM
Re: Display information vs screen dumps
05/04/08 03:11 PM


@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.







Entire thread
Subject Posted by Posted on
* Display information vs screen dumps BartA 05/03/08 10:33 PM
. * Regarding the highscore site Heihachi_73  05/26/08 11:30 PM
. * Re: Display information vs screen dumps Heihachi_73  05/26/08 08:54 PM
. * Re: Display information vs screen dumps StilettoAdministrator  05/04/08 09:23 AM
. * Re: Display information vs screen dumps BartA  05/04/08 11:23 AM
. * Re: Display information vs screen dumps R. Belmont  05/04/08 07:30 PM
. * Re: Display information vs screen dumps couriersud  05/04/08 03:11 PM
. * Re: Display information vs screen dumps Olivier Galibert  07/25/08 02:26 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 64 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 5969