MAMEWorld >> MAME Artwork: Official
View all threads Index   Flat Mode Flat  

Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4856
Loc: California
Send PM
Re: bezel fail :(
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.








Entire thread
Subject Posted by Posted on
* bezel fail :( RowanDDR 01/09/14 12:38 AM
. * Re: bezel fail :( Mr. DoAdministrator  01/09/14 05:14 AM
. * Re: bezel fail :( RowanDDR  01/09/14 02:52 PM
. * Re: bezel fail :( StilettoAdministrator  01/09/14 03:31 PM
. * Re: bezel fail :( RowanDDR  01/09/14 03:36 PM

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