* 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:
parent
3ccf16dff9
commit
4a87649207
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* grub-core/video/readers/png.c: Support grayscale
|
||||
|
|
|
@ -1175,6 +1175,10 @@ grub_video_fb_create_render_target (struct grub_video_fbrender_target **result,
|
|||
}
|
||||
|
||||
/* Clear render target with black and maximum transparency. */
|
||||
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. */
|
||||
|
|
Loading…
Reference in a new issue