aboutsummaryrefslogtreecommitdiffstats
path: root/src/bootsplash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootsplash.c')
-rw-r--r--src/bootsplash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootsplash.c b/src/bootsplash.c
index 165c98d0..538b316d 100644
--- a/src/bootsplash.c
+++ b/src/bootsplash.c
@@ -172,10 +172,10 @@ enable_bootsplash(void)
dprintf(1, "bmp_decode failed with return code %d...\n", ret);
goto done;
}
- bmp_get_size(bmp, &width, &height);
- bpp_require = 24;
+ bmp_get_info(bmp, &width, &height, &bpp_require);
}
- /* jpeg would use 16 or 24 bpp video mode, BMP use 24bpp mode only */
+
+ // jpeg would use 16 or 24 bpp video mode, BMP uses 16/24/32 bpp mode.
// Try to find a graphics mode with the corresponding dimensions.
int videomode = find_videomode(vesa_info, mode_info, width, height,