Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: dadi4168 on January 20, 2017, 03:06:46 PM

Title: Themes for different resolutions
Post by: dadi4168 on January 20, 2017, 03:06:46 PM
Hi all,

First post, but let me say this site is amazing and I'm really enjoying the hard work you good people have put into this project.  I've been using the robospin themes mostly for my HDTV.  I use a Pi 3.  I also installed the latest RetroPie and Attract Mode.  I have the robospin advance for my GBA section, but the snap placement is off when I put it on my portable rpi 3, same setup with the exception that the 5 inch screen is 800x480.  I think this is causing the issue.  Would I be able to go into the nut file and adjust this?  I've never played with themes, but I'm willing to learn.  I'm hopping over to GitHub now to see if I can find anything.  Thanks.
Title: Re: Themes for different resolutions
Post by: verion on January 20, 2017, 03:50:16 PM
Unfortunately some art transformation functions (mainly skew/pinch - that makes art look like in perspective) are related to the screen resolution.

I'm assuming that everything is ok on your TV that has resolution 1920x1080px - right?

If so - you have to add this in layout.nut:
fe.layout.width = 1920;
fe.layout.height = 1080;

And it should fix snap placement
Title: Re: Themes for different resolutions
Post by: dadi4168 on January 20, 2017, 04:23:22 PM
Yes, everything's perfect on the TV.  Thank you.

That worked perfect.  Thank you.