mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-19 05:58:09 +00:00
fix(core): support 32 bit colors in terminal
[no changelog]
This commit is contained in:
parent
0b8d42358e
commit
0c98f578ad
@ -81,8 +81,8 @@ static void term_redraw_rows(int start_row, int row_count) {
|
||||
.src_x = 0,
|
||||
.src_y = 0,
|
||||
.src_stride = 8,
|
||||
.src_fg = terminal_fgcolor,
|
||||
.src_bg = terminal_bgcolor,
|
||||
.src_fg = gfx_color16_to_color(terminal_fgcolor),
|
||||
.src_bg = gfx_color16_to_color(terminal_bgcolor),
|
||||
};
|
||||
|
||||
for (int y = start_row; y < start_row + row_count; y++) {
|
||||
@ -159,9 +159,9 @@ void term_print(const char *text, int textlen) {
|
||||
}
|
||||
const uint8_t *g = Font_Bitmap + (5 * (c - ' '));
|
||||
if (k < 5 && (g[k] & (1 << j))) {
|
||||
PIXELDATA(terminal_fgcolor);
|
||||
PIXELDATA(gfx_color16_to_color(terminal_fgcolor));
|
||||
} else {
|
||||
PIXELDATA(terminal_bgcolor);
|
||||
PIXELDATA(gfx_color16_to_color(terminal_bgcolor));
|
||||
}
|
||||
}
|
||||
display_pixeldata_dirty();
|
||||
|
Loading…
Reference in New Issue
Block a user