terminal: fix rendering of U+2580
This commit is contained in:
parent
ced0a6e945
commit
f03f44e975
@ -621,13 +621,9 @@ static void draw_semi_block(int c, int x, int y, uint32_t fg, uint32_t bg) {
|
|||||||
bg = premultiply(bg);
|
bg = premultiply(bg);
|
||||||
fg = premultiply(fg);
|
fg = premultiply(fg);
|
||||||
if (c == 0x2580) {
|
if (c == 0x2580) {
|
||||||
uint32_t t = bg;
|
for (uint8_t i = 0; i < char_height / 2; ++i) {
|
||||||
bg = fg;
|
|
||||||
fg = t;
|
|
||||||
c = 0x2584;
|
|
||||||
for (uint8_t i = 0; i < char_height; ++i) {
|
|
||||||
for (uint8_t j = 0; j < char_width; ++j) {
|
for (uint8_t j = 0; j < char_width; ++j) {
|
||||||
term_set_point(x+j,y+i,bg);
|
term_set_point(x+j,y+i,fg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (c >= 0x2589) {
|
} else if (c >= 0x2589) {
|
||||||
|
Loading…
Reference in New Issue
Block a user