diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-19 19:44:13 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-19 19:44:13 +0000 |
commit | cc18095cded14f5e7e3f049e47fca2224134b647 (patch) | |
tree | 2a057f4836925083a19988d571dc0664925c9e48 /src/ui/button.cc | |
parent | badfb31888a6bd62e0a019b3f3dec517df4121ec (diff) |
text rendering cleanups, inventory capacity & cargo volume
Diffstat (limited to 'src/ui/button.cc')
-rw-r--r-- | src/ui/button.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/button.cc b/src/ui/button.cc index 9196b90..95158a2 100644 --- a/src/ui/button.cc +++ b/src/ui/button.cc @@ -56,11 +56,11 @@ void Button::draw_border() if (t > 0.5) t = 1 - t; color.a = 0.5f + t; - paint::color(color); + Paint::set_color(color); } else - paint::color(palette()->border()); + Paint::set_color(palette()->border()); - paint::border(global_location(), size()); + Paint::draw_border(global_location(), size()); } void Button::draw() @@ -69,11 +69,11 @@ void Button::draw() return; if (has_mouse_focus()) - paint::color(palette()->highlight()); + Paint::set_color(palette()->highlight()); else - paint::color(palette()->foreground()); + Paint::set_color(palette()->foreground()); - paint::label(global_location(), size(), font(), text(), alignment()); + Paint::draw_label(global_location(), size(), font(), text(), alignment()); } bool Button::on_keypress(const int key, const unsigned int modifier) |