video_fb: Fix blue collor if using unoptimized blitter.

when unmapping the color what matters is the mode of source, not target.
This commit is contained in:
Vladimir Serbinenko 2017-02-09 02:22:24 +01:00
parent 641bb15fa4
commit fb93c75bdd

View file

@ -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)
{