Support color emoji
This commit is contained in:
parent
1651c4f792
commit
deb993d9c3
3 changed files with 52 additions and 14 deletions
|
|
@ -203,10 +203,8 @@ fn main() {
|
|||
}
|
||||
}
|
||||
|
||||
line.draw(|x, y, alpha| {
|
||||
window.pixel(line_x + x, line_y + y, Color {
|
||||
data: (alpha as u32) << 24 | (font_color.data & 0x00FF_FFFF)
|
||||
});
|
||||
line.draw(font_color.data, |x, y, color| {
|
||||
window.pixel(line_x + x, line_y + y, Color { data: color });
|
||||
});
|
||||
|
||||
line_y += line_height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue