diff options
Diffstat (limited to 'src/ui/label.cc')
-rw-r--r-- | src/ui/label.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/label.cc b/src/ui/label.cc index aee6a36..1b142c4 100644 --- a/src/ui/label.cc +++ b/src/ui/label.cc @@ -5,7 +5,7 @@ */ #include "math/vector2f.h" -#include "render/primitives.h" +#include "ui/paint.h" #include "ui/label.h" using math::Vector2f; @@ -53,10 +53,8 @@ void Label::draw_text() if (!label_text.size()) return; - if (palette()) - render::gl::color(palette()->foreground()); - - render::primitives::text_centered(global_location(), size(), label_text); + paint::color(palette()->foreground()); + paint::text_centered(global_location(), size(), text(), font()); } } |