Comment 1 for bug 62865

Revision history for this message
Johan Kiviniemi (ion) wrote : Resolution fallback fix

The resolution fallback feature in the new usplash version corrupts the screen.

usplash_svga_setmode falls back to a smaller resolution if the requested one fails, but usplash_setup doesn't update the xres and yres variables accordingly.

The attached patch contains the following changes:
• usplash_init and usplash_getdimensions are now called *before* choosing the appropriate theme.
• usplash_svga_setmode prints a warning when it falls back to a lower resolution.
• usplash_svga_set_resolution's behavior is fixed: it used to set modenum to a value too big by 1, so setmode tried 1152x864 first when 1024x768 was requested.