summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-12-21 01:37:04 +0100
committerKay Sievers <kay@vrfy.org>2013-12-21 01:37:04 +0100
commit257196a659c5e329742feb77934d22640a26ee91 (patch)
tree6745cf1bc719a6845247736b9b59c47ca3c6daf4
parent2bebba696521ef53e7f93eee737928cd136b771a (diff)
remove +1 from alpha calculation
-rw-r--r--src/efi/graphics.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/efi/graphics.c b/src/efi/graphics.c
index 81089ed..d903ba1 100644
--- a/src/efi/graphics.c
+++ b/src/efi/graphics.c
@@ -205,8 +205,7 @@ EFI_STATUS bmp_parse_header(UINT8 *bmp, UINTN size, struct bmp_dib **ret_dib,
static void pixel_blend(UINT32 *dst, const UINT32 source) {
UINT32 alpha, src, src_rb, src_g, dst_rb, dst_g, rb, g;
- /* add 1 to make alpha = 255 be the same as no alpha channel */
- alpha = (source & 0xff) + 1;
+ alpha = (source & 0xff);
/* convert src from RGBA to XRGB */
src = source >> 8;