* grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):

Correctly will with maximum transparency when using index color.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-09-27 21:44:03 +02:00
parent 3ccf16dff9
commit 4a87649207
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
* 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 <phcoder@gmail.com> 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/video/readers/png.c: Support grayscale * grub-core/video/readers/png.c: Support grayscale

View file

@ -1175,7 +1175,11 @@ grub_video_fb_create_render_target (struct grub_video_fbrender_target **result,
} }
/* Clear render target with black and maximum transparency. */ /* 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. */ /* TODO: Add render target to render target list. */