mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
[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:
parent
a9745d0540
commit
1f5ec68b4a
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue