From 1f5ec68b4a81855cfce363191748776ef0c16f81 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 5 Dec 2022 21:06:42 +0900 Subject: [PATCH] [sw] Convert built in 8x8 font transparent pixels I had done the loader for the GPU renderers, so the CPU renderer didn't draw the characters transparently. Fixes the pink block in my ruamoko test scene (due to the notify text area). --- libs/video/renderer/sw/draw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/video/renderer/sw/draw.c b/libs/video/renderer/sw/draw.c index 0adfdd731..e05eb633d 100644 --- a/libs/video/renderer/sw/draw.c +++ b/libs/video/renderer/sw/draw.c @@ -247,6 +247,10 @@ Draw_Init (void) if (!draw_chars) { qpic_t *pic = Draw_Font8x8Pic (); draw_chars = pic->data; // FIXME indirect hold on the memory + //FIXME param to Draw_Font8x8Pic + for (int i = 0; i < pic->width * pic->height; i++) { + pic->data[i] = pic->data[i] == 255 ? 0 : pic->data[i]; + } } if (draw_backtile) { r_rectdesc.width = draw_backtile->width;