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:
parent
641bb15fa4
commit
fb93c75bdd
1 changed files with 1 additions and 1 deletions
|
@ -743,7 +743,7 @@ grub_video_fb_unmap_color_int (struct grub_video_fbblit_info * source,
|
||||||
if ((mode_info->mode_type
|
if ((mode_info->mode_type
|
||||||
& GRUB_VIDEO_MODE_TYPE_INDEX_COLOR) != 0)
|
& 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
|
& GRUB_VIDEO_MODE_TYPE_ALPHA) != 0
|
||||||
&& color == 0xf0)
|
&& color == 0xf0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue