From 49c9e8c7cfc91947cb7ddcbfc616905a06d6011c Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 25 Feb 2021 14:18:10 +0300 Subject: [PATCH] Use glyph drawing in labels --- libs/ui/source/label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ui/source/label.cpp b/libs/ui/source/label.cpp index 529f4b82..36de8d35 100644 --- a/libs/ui/source/label.cpp +++ b/libs/ui/source/label.cpp @@ -69,7 +69,7 @@ namespace psemek::ui } 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()