Support color emoji

This commit is contained in:
Jeremy Soller 2022-10-07 12:42:23 -06:00
parent 1651c4f792
commit deb993d9c3
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 52 additions and 14 deletions

View file

@ -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;