Use different layouts for different screen modes
Detail: Rather than using a fixed layout (which assumes a fixed screen size), BootFX now supports multiple layouts, which are able to adjust their scale to fit the current screen. First the layout most appropriate to the aspect ratio is chosen, and then coordinates and scale factors are adjusted in order to account for any difference in resolution. If the scaling results in a text window which is deemed to be "too small" then another layout will be tried, or in extreme cases BootFX will give up and go inactive for that mode. For cases where there is an inexact aspect ratio match, borders will be added to the layout in order to allow it to maintain the correct aspect ratio. This may result in some wasted space but sufficient for most purposes. File changes: - Docs/Spec.txt - Document BootFX_BarLoad addition to allow custom bar scale factors to be used - c/bootfx - Move hard-coded layout parameters into layout_t structs, and implement the layout adjustment logic. Define two layouts for Raspberry Pi; 4:3 layout will crop off the top portion of the splash so that a large text window can be placed underneath. - h/bootfx - Remove a few constants which are defined elsewhere in shared headers Admin: Tested on Raspberry Pi, in a variety of screen modes Version 0.07. Tagged as 'BootFX-0_07'
Showing
This diff is collapsed.
Please register or sign in to comment