[PATCH 4/5] fbconsole: make background pixels transparent

Sascha Hauer s.hauer at pengutronix.de
Wed Sep 25 07:34:52 PDT 2024


When we have a background image we want the background to actually shine
through, so set the alpha value of the background to transparent and not
opaque.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/video/fbconsole.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbconsole.c b/drivers/video/fbconsole.c
index cec1afec56..d3615bc07f 100644
--- a/drivers/video/fbconsole.c
+++ b/drivers/video/fbconsole.c
@@ -139,7 +139,7 @@ static void drawchar(struct fbc_priv *priv, int x, int y, int c)
 	color = gu_rgb_to_pixel(priv->fb, rgb->r, rgb->g, rgb->b, 0xff);
 
 	rgb = &colors[bgcolor];
-	bgcolor = gu_rgb_to_pixel(priv->fb, rgb->r, rgb->g, rgb->b, 0xff);
+	bgcolor = gu_rgb_to_pixel(priv->fb, rgb->r, rgb->g, rgb->b, 0x0);
 
 	for (i = 0; i < priv->font->height; i++) {
 		uint8_t mask = 0x80;

-- 
2.39.5




More information about the barebox mailing list