reassign 956426 desktop-base 10.0.3
affects 956426 plymouth
thanks

Le 11/04/20 à 00:40, Gert van de Kraats a écrit :

Dear Maintainer,

Default plymouth theme with name "futureprototype" is used.
I am using 2 different monitors with size 1280 x 1024 and 1280 x 800.
Message like "resuming from hibernation" is written in the middle of the text
"Debian" with the same color (white)
and therefore the message is unreadable. Same problem with progress-percentage
during a software-upgrade.

Problem is at /usr/share/plymouth/themes/futureprototype/futureprototype.script
at routine TextYOffset.
This routine checks if the message, including some reserved lines, fits at the
screen.
If not, then the message is shifted upwards until it fits.
Coding:
    if (y + text_height > min_height)
        y = min_height - text_height;

This is wrong, because y is the vertical offset of the message at the largest
screen
 and min_height is the height of the smallest screen.
This causes a shift of the text, although it fits at the smallest screen.
Also the shift is not correct, because it computes the vertical offset y
from the top of the smallest screen in stead of the largest screen.
Corrected code:
    if (y - Window.GetY() + text_height > min_height)
    # shift to top of smallest window
        y = Window.GetY() + 1;

The message is shifted now to the first line that is visble on both screens,
to avoid overlapping the "Debian"-text.

With the corrected test the message is not shifted anymore at the used
monitors.

This wrong code is also present at some other older plymouth scripts and also
at ubuntu,
but does not harm there.

Thanks for your bug report, I quickly checked and this seems that code construct is specific to the themes created for debian shipped by desktop base.

I'm reassigning this bug to that package

Reply via email to