MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

OfHistory
MAME Fan
Reged: 07/07/12
Posts: 8
Send PM
How to strect the game only at integer ratios?
07/08/12 12:25 AM


I don't get MAME to use the video options I want.

My monitor has a resolution of 1360x768.
The native game resolution is 256x240.

What I want is: MAME shall stretch the game as much as it can, but only at integer ratio. The rest of the screen shall be filled with black bars.

That means in practice: MAME shall strect the 256x240 pixels three times so that it is 768x720.
Then it shall put the 768x720 game image into the 1350x768 screen and fill the top and the bottom of the screen with 24 black pixels each and the left and right with 296 pixels each.

----------

Let's illustrate it:

Let's say this is my screen:


And this is the game image in its native resolution:


What I want is this:


This would be totally wrong:


And this, even though it keeps the aspect ratio, doesn't stretch at an integer ratio, but fills the screen vertically no matter what (some pixels of the game image are bigger than others), so it's wrong too:


In the old MAME version (version 0106 and earlier, where DirectDraw was the default), I managed to do it the way I want like this:

Code:

mame romname -r 1360x768 -nohws

Now, how can I trigger the same output with the new MAME and Direct3D? I'd be very grateful if you could help me and give me the exact command line call for this.

Oh, and by the way: This is not about enabling or disabling the bilinear filter. I consciously switched the bilinear filter off so that the game looks pixelated and not blurry. So, telling me to enable the filter so that the image looks like this wouldn't help me:

My question is really just about forcing MAME to calculate at integer ratios since in the moment, it always fills the screen vertically.







Entire thread
Subject Posted by Posted on
* How to strect the game only at integer ratios? OfHistory 07/08/12 12:25 AM
. * Re: How to strect the game only at integer ratios? krick  07/08/12 07:18 AM
. * Re: How to strect the game only at integer ratios? StilettoAdministrator  07/08/12 07:37 AM
. * Re: How to strect the game only at integer ratios? H@P  07/09/12 01:08 AM
. * Re: How to strect the game only at integer ratios? R. Belmont  07/09/12 04:28 PM
. * Re: How to strect the game only at integer ratios? H@P  07/09/12 06:48 PM
. * Re: How to strect the game only at integer ratios? krick  09/08/12 11:44 PM
. * Re: How to strect the game only at integer ratios? R. Belmont  07/09/12 07:31 PM
. * Re: How to strect the game only at integer ratios? H@P  07/10/12 07:01 AM
. * Re: How to strect the game only at integer ratios? Trebor  07/09/12 04:45 PM
. * Re: How to strect the game only at integer ratios? Sune  07/09/12 10:45 PM
. * Re: How to strect the game only at integer ratios? R. Belmont  07/10/12 05:03 PM
. * Re: How to strect the game only at integer ratios? Sune  07/10/12 10:10 PM
. * Re: How to strect the game only at integer ratios? TafoidAdministrator  07/11/12 04:22 AM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 03:09 AM
. * Re: How to strect the game only at integer ratios? StilettoAdministrator  07/09/12 01:31 AM
. * EDIT: How to strect the game only at integer ratios? H@P  07/09/12 03:09 AM
. * Re: How to strect the game only at integer ratios? Sune  07/09/12 03:18 AM
. * Re: How to strect the game only at integer ratios? B2K24  07/08/12 08:23 AM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 11:41 AM
. * Re: How to strect the game only at integer ratios? Calamity  07/08/12 01:47 PM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 02:29 PM
. * Re: How to strect the game only at integer ratios? Calamity  07/08/12 03:35 PM
. * Re: How to strect the game only at integer ratios? TafoidAdministrator  07/08/12 02:53 PM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 03:38 PM
. * Re: How to strect the game only at integer ratios? krick  07/09/12 07:38 AM
. * Re: How to strect the game only at integer ratios? Vas Crabb  07/08/12 04:08 PM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 06:23 PM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 07:45 PM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 08:45 PM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 11:01 PM
. * Re: How to strect the game only at integer ratios? krick  07/28/12 07:24 AM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 11:16 PM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 01:44 AM
. * Re: How to strect the game only at integer ratios? B2K24  07/09/12 05:19 AM
. * Re: How to strect the game only at integer ratios? Sune  07/09/12 02:33 AM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 11:21 PM
. * Re: How to strect the game only at integer ratios? joey35car  07/08/12 11:44 PM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 11:56 PM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 12:43 AM
. * Re: How to strect the game only at integer ratios? Sune  07/09/12 01:07 AM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 02:01 AM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 02:11 AM
. * Re: How to strect the game only at integer ratios? Sune  07/09/12 02:22 AM
. * Re: How to strect the game only at integer ratios? joey35car  07/09/12 02:32 AM
. * Re: How to strect the game only at integer ratios? OfHistory  07/08/12 05:43 PM
. * Re: How to strect the game only at integer ratios? redk9258  07/08/12 05:04 PM
. * Re: How to strect the game only at integer ratios? B2K24  07/08/12 02:26 AM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 02:30 AM
. * Re: How to strect the game only at integer ratios? Waremonger  07/08/12 06:10 AM
. * Re: How to strect the game only at integer ratios? Sune  07/08/12 05:55 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 173 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 5834