video_fb: Fix blue collor if using unoptimized blitter.
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 9 Feb 2017 01:22:24 +0000 (02:22 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 27 Feb 2017 01:58:50 +0000 (01:58 +0000)
when unmapping the color what matters is the mode of source, not target.

grub-core/video/fb/video_fb.c

index 722bb3b..1a602c8 100644 (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)
         {