From: Vladimir Serbinenko Date: Thu, 9 Feb 2017 01:22:24 +0000 (+0100) Subject: video_fb: Fix blue collor if using unoptimized blitter. X-Git-Tag: 2.02-rc2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb93c75bdd10c0791522baa0cfff1bed9edc8745;p=thirdparty%2Fgrub.git video_fb: Fix blue collor if using unoptimized blitter. when unmapping the color what matters is the mode of source, not target. --- 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) {