MAMEWorld >> MAME Artwork: Official
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

RowanDDR
MAME Fan
Reged: 08/27/13
Posts: 5
Send PM


bezel fail :(
#320011 - 01/09/14 12:38 AM


I'm failing at adding a bezel in MAME. Please help.

Here is the result on my 1080p screen:
http://imageshack.com/a/img11/9329/c366.jpg

The game screen area is OK but the bezel seems to be shrunk (scaled), making it overlap the game screen a little, and giving huge black borders around the edges of the screen.

This is the original bezel file and .lay file for reference:
http://imageshack.com/a/img191/4374/pu4x.png [2.4MB]

.lay file: http://pastebin.com/t1spDbN9

Edited by RowanDDR (01/09/14 12:41 AM)



Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4876
Loc: California
Send PM


Re: bezel fail :( new [Re: RowanDDR]
#320019 - 01/09/14 05:14 AM


> I'm failing at adding a bezel in MAME. Please help.
>
> Here is the result on my 1080p screen:
> http://imageshack.com/a/img11/9329/c366.jpg
>
> The game screen area is OK but the bezel seems to be shrunk (scaled), making it
> overlap the game screen a little, and giving huge black borders around the edges of
> the screen.
>
> This is the original bezel file and .lay file for reference:
> http://imageshack.com/a/img191/4374/pu4x.png [2.4MB]
>
> .lay file: http://pastebin.com/t1spDbN9

It's because you have the top left corner of the screen at 0,0; the same as the bezel. Part of the screen is hidden under the bezel.

You need to set the top left coordinate of the screen to be inside the bezel window, preferably centered. See fixed LAY file below.

<!-- sf2ce.lay -->

<mamelayout version="2">
<element name="bezel">
<image file="sf2ce_bezel.png" />
</element>
<view name="Upright_Artwork">
<screen index="0">
<bounds x="413" y="133" width="1160" height="870" />
</screen>
<bezel element="bezel">
<bounds x="0" y="0" width="1920" height="1080" />
</bezel>
</view>
</mamelayout>




RELAX and just have fun. Remember, it's all about the games.




RowanDDR
MAME Fan
Reged: 08/27/13
Posts: 5
Send PM


Re: bezel fail :( new [Re: Mr. Do]
#320040 - 01/09/14 02:52 PM


Thanks Mr Do, this works!

An interesting side effect is that by using the .lay file to set exact "screen" dimensions, it is possible to recreate the effect of the long lost "cleanstretch" (integer scaling) feature, while still using D3D. (usually, this is only an option for slow old DirectDraw mode)

So for Street Fighter II I'm using "screen" width="1152" height="896" (exact multiples of the 384x224 naitive resolution of the game). Looks great on my 1080p screen.



StilettoAdministrator
They're always after me Lucky ROMS!
Reged: 03/07/04
Posts: 6472
Send PM


Re: bezel fail :( new [Re: RowanDDR]
#320042 - 01/09/14 03:31 PM


> it is possible to recreate the effect of the long lost "cleanstretch"
> (integer scaling) feature, while still using D3D. (usually, this is only an option
> for slow old DirectDraw mode)

This feature was (I believe) reborn as "-unevenstretch/-nounevenstretch" which first appeared in SDLMAME, later making the jump back to MAME. (-unevenstretch being MAME's default)

... Or maybe it was removed again: http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Board=mamechat&Number=317248

I forget. Either way, a Windows build of SDLMAME will definitely have it.

- Stiletto



RowanDDR
MAME Fan
Reged: 08/27/13
Posts: 5
Send PM


Re: bezel fail :( new [Re: Stiletto]
#320043 - 01/09/14 03:36 PM


Oh, interesting. Hopefully it will get reimplemented soon into vanilla MAME. Well I can hope can't I?


Pages: 1

MAMEWorld >> MAME Artwork: Official
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

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