two-step: bgrt: Add workaround for desktops which do not use the golden ratio

System Internals / Plymouth - Hans de Goede [redhat.com] - 6 September 2019 15:34 EDT

On desktops (no panel) we normally do not use the BGRT provided xoffset and yoffset because the resolution they are intended for may be differtent then the resolution of the current display.

On some desktops (no panel) the image gets centered not only horizontally, but also vertically. In this case our default of using the golden ratio for the vertical position causes the BGRT image to jump.

To avoid this this commits adds an extra check to see if the provided xoffset and yoffset perfectly center the image and in that case uses them.

An example of a system needing this workaround is the Minix Neo Z83-4.

4b3be15 two-step: bgrt: Add workaround for desktops which do not use the golden ratio
src/plugins/splash/two-step/plugin.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)

Upstream: cgit.freedesktop.org


  • Share