Jump to content
LaunchBox Community Forums

Mame bezels not aligned for vertical games


Pixelfetish

Recommended Posts

I have installed the newest Launchbox and Mame 0.260 🫠
also, I am using OpenGL shaders, one for horizontal and one for vertical.
For horizontal everything seems okay, the game screen fits into the bezel, but not for vertical.
In the Mame Menu to option for Bezels is also missing for vertical.
I have added two screenshots, one horizontal (ok), and one vertical (error).

Could it be possible a layout file is missing for vertical games or wrong?
If so, where do I have to look for this file?

Thanks for any helpful advice.

mame horzt.png

mame vert.png

Link to comment
Share on other sites

I have found the issue.
The default lay file has an error.

 

<mamelayout version="2">
  <element name="bezel">
    <image file="bezel.png" />
  </element>
  <view name="Bezel Artwork">
    <bezel element="bezel">
      <bounds left="0" top="0" right="16" bottom="9" />
    </bezel>
    <screen index="0">
      <bounds left="4.625" top="0" right="11.375" bottom="9" />
    </screen>
  </view>
</mamelayout>

The wrong layout file is here:
 

<mamelayout version="2">
  <element name="bezel">
    <image file="bezel.png" />
  </element>
  <view name="Bezel Artwork">
    
    <element ref="bezel">
      <bounds left="0" top="0" right="16" bottom="9" />
    </element>
    
    <screen index="0">
      <bounds left="4.625" top="0" right="11.375" bottom="9" />
    </screen>
  </view>
</mamelayout>

Hope this helps for anyone encountering this error.
 

Link to comment
Share on other sites

I'm not sure where the error is.

The first code is the old deprecated format, and the second one is the new format.

Other than that they look functionally the same. (I haven't had my morning coffee though :) )

The default bezel will apply to all games. If you want seperate ones for vertical and horizontal you need a vertical.zip and a horizont.zip 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...