fix fb_text_render_char() to use given color
This commit is contained in:
parent
9fde638b6e
commit
70b4db9dbb
@ -7,5 +7,5 @@ void fb_text_render_char(int c, int x, int y, uint8_t r, uint8_t g, uint8_t b)
|
||||
const fontgen_char_info_t * char_info = kfont.char_infos[c];
|
||||
y += kfont.line_height - kfont.baseline_offset - char_info->top;
|
||||
x += char_info->left;
|
||||
fb_blend_alpha8(char_info->bitmap, char_info->width, char_info->height, char_info->width, x, y, 0xFFu, 0x88u, 0u);
|
||||
fb_blend_alpha8(char_info->bitmap, char_info->width, char_info->height, char_info->width, x, y, r, g, b);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user