From fb93c75bdd10c0791522baa0cfff1bed9edc8745 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 9 Feb 2017 02:22:24 +0100 Subject: [PATCH] video_fb: Fix blue collor if using unoptimized blitter. when unmapping the color what matters is the mode of source, not target. --- grub-core/video/fb/video_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/video/fb/video_fb.c b/grub-core/video/fb/video_fb.c index 722bb3bb4..1a602c8b2 100644 --- a/grub-core/video/fb/video_fb.c +++ b/grub-core/video/fb/video_fb.c @@ -743,7 +743,7 @@ grub_video_fb_unmap_color_int (struct grub_video_fbblit_info * source, if ((mode_info->mode_type & GRUB_VIDEO_MODE_TYPE_INDEX_COLOR) != 0) { - if ((framebuffer.render_target->mode_info.mode_type + if ((mode_info->mode_type & GRUB_VIDEO_MODE_TYPE_ALPHA) != 0 && color == 0xf0) {