From 257196a659c5e329742feb77934d22640a26ee91 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 21 Dec 2013 01:37:04 +0100 Subject: remove +1 from alpha calculation --- src/efi/graphics.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3