Use glyph drawing in labels

This commit is contained in:
Nikita Lisitsa 2021-02-25 14:18:10 +03:00
parent 2b1417160c
commit 49c9e8c7cf

View file

@ -69,7 +69,7 @@ namespace psemek::ui
} }
for (auto & g : cached_state_->glyphs) for (auto & g : cached_state_->glyphs)
p.draw_rect(g.position, st->text_color); p.draw_glyph(*st->font, g.character, g.position, st->text_color);
} }
void label::on_state_changed() void label::on_state_changed()