[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).
This commit is contained in:
Bill Currie 2022-12-05 21:06:42 +09:00
parent a9745d0540
commit 1f5ec68b4a

View file

@ -247,6 +247,10 @@ Draw_Init (void)
if (!draw_chars) { if (!draw_chars) {
qpic_t *pic = Draw_Font8x8Pic (); qpic_t *pic = Draw_Font8x8Pic ();
draw_chars = pic->data; // FIXME indirect hold on the memory 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) { if (draw_backtile) {
r_rectdesc.width = draw_backtile->width; r_rectdesc.width = draw_backtile->width;