From 4a876492073a551357ddfba08bf5623d084b5267 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Fri, 27 Sep 2013 21:44:03 +0200 Subject: [PATCH] * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target): Correctly will with maximum transparency when using index color. --- ChangeLog | 5 +++++ grub-core/video/fb/video_fb.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 05f7af786..71dd24677 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-09-27 Vladimir Serbinenko + + * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target): + Correctly will with maximum transparency when using index color. + 2013-09-27 Vladimir Serbinenko * grub-core/video/readers/png.c: Support grayscale diff --git a/grub-core/video/fb/video_fb.c b/grub-core/video/fb/video_fb.c index f903addca..bfa43b0d8 100644 --- a/grub-core/video/fb/video_fb.c +++ b/grub-core/video/fb/video_fb.c @@ -1175,7 +1175,11 @@ grub_video_fb_create_render_target (struct grub_video_fbrender_target **result, } /* Clear render target with black and maximum transparency. */ - grub_memset (target->data, 0, size); + if (mode_type == (GRUB_VIDEO_MODE_TYPE_INDEX_COLOR + | GRUB_VIDEO_MODE_TYPE_ALPHA)) + grub_memset (target->data, 0xf0, size); + else + grub_memset (target->data, 0, size); /* TODO: Add render target to render target list. */