Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: CHINCB on December 31, 2016, 07:40:16 AM

Title: Some themes not loading
Post by: CHINCB on December 31, 2016, 07:40:16 AM
Hello all,

I am trying to change the layout on my RPi3 with AM but when i select some of the themes many of them seem to load as a "default" theme (Rom name centered with snap as background) I have noticed this with both nevato and flat-blue and several others, Any advice on how to get them to work?
Title: Re: Some themes not loading
Post by: magwe on January 01, 2017, 08:18:44 AM
I haven't tried flat-blue, but I have seen this on Nevato as well. The problem with Nevato was that it relies on a number of hard coded aspect ratios that your TV/monitor has to match exactly. The aspect ratio for 16x9 is 1920/1080=1.777778 but there is a special case for 1366/768=1.77865. My TV was 1360/768=1.77083 which didn't match exactly, so it failed to recognize it as a 16x9 screen.

I guess that the fix is to rewrite Nevato to use if/else statements instead of a switch block when translating the aspect_name so that ranges can be used instead of exact values. (But I haven't bothered to try, and I haven't written squirrel before)
Title: Re: Some themes not loading
Post by: verion on January 02, 2017, 03:29:20 AM
I have to change my NEVATO theme to use more "fuzzy logic" when detecting aspect ratio. This one and adding text-only game list are 2 main things that I have to deal with next update.