Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-19 19:44:13 +0000
committerStijn Buys <ingar@osirion.org>2010-09-19 19:44:13 +0000
commitcc18095cded14f5e7e3f049e47fca2224134b647 (patch)
tree2a057f4836925083a19988d571dc0664925c9e48 /src/ui/iconbutton.cc
parentbadfb31888a6bd62e0a019b3f3dec517df4121ec (diff)
text rendering cleanups, inventory capacity & cargo volume
Diffstat (limited to 'src/ui/iconbutton.cc')
-rw-r--r--src/ui/iconbutton.cc12
1 files changed, 6 insertions, 6 deletions
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());
}
}