From cc18095cded14f5e7e3f049e47fca2224134b647 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Sep 2010 19:44:13 +0000 Subject: text rendering cleanups, inventory capacity & cargo volume --- src/ui/iconbutton.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ui/iconbutton.cc') diff --git a/src/ui/iconbutton.cc b/src/ui/iconbutton.cc index ffdafe0..87203ee 100644 --- a/src/ui/iconbutton.cc +++ b/src/ui/iconbutton.cc @@ -79,14 +79,14 @@ void IconButton::draw() return; if (disabled()) { - paint::color(palette()->disabled()); + Paint::set_color(palette()->disabled()); } else if (has_mouse_focus()) { - paint::color(palette()->highlight()); + Paint::set_color(palette()->highlight()); } else { - paint::color(palette()->foreground()); + Paint::set_color(palette()->foreground()); } - paint::bitmap(location(), size(), icon()); + Paint::draw_bitmap(location(), size(), icon()); } void IconButton::draw_border() @@ -98,8 +98,8 @@ void IconButton::draw_border() if (t > 0.5) t = 1 - t; color.a = 0.5f + t; - paint::color(color); - paint::border(global_location(), size()); + Paint::set_color(color); + Paint::draw_border(global_location(), size()); } } -- cgit v1.2.3