MAMEWorld >> Programming
Index   Flat Mode Flat  

ole
MAME Porter
Reged: 02/09/14
Posts: 19
Send PM
Re: Mame scaling help
02/19/14 10:45 PM



> Sad, I don't have ANY idea of ddraw, to realize where is the stretching code
>

You can use the same techique I described you in my previous post. You say you need to use ddraw to render. Ok, then look at the line 855 where the function to draw via ddraw is being called: win_ddraw_draw(). Search for the function in the same file and you won't find it there. Then search it in the other source code in the same directory and you will find it in the "winddraw.c" on line 991. If you look closely: they further split the code path and use either render_to_blit() or render_to_primary() functions. Then look at the render_to_blit() on line 1091 . They fill-in some data structure with the coordinates and scaling ratios. Change these values and bingo!







Entire thread
Subject Posted by Posted on
* Mame scaling help TheElf 02/17/14 04:47 PM
. * Re: Mame scaling help krick  02/19/14 04:55 AM
. * Re: Mame scaling help TheElf  02/19/14 03:39 PM
. * Re: Mame scaling help ole  02/19/14 01:39 AM
. * Re: Mame scaling help TheElf  02/19/14 03:27 AM
. * Re: Mame scaling help ole  02/19/14 10:45 PM
. * Re: Mame scaling help R. Belmont  02/18/14 05:50 PM
. * Re: Mame scaling help TheElf  02/18/14 06:24 PM

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