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/listitem.cc
parentbadfb31888a6bd62e0a019b3f3dec517df4121ec (diff)
text rendering cleanups, inventory capacity & cargo volume
Diffstat (limited to 'src/ui/listitem.cc')
-rw-r--r--src/ui/listitem.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/listitem.cc b/src/ui/listitem.cc
index 601d5a8..ff9ad18 100644
--- a/src/ui/listitem.cc
+++ b/src/ui/listitem.cc
@@ -30,11 +30,11 @@ void ListItem::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());
} else if ((static_cast<ListView *>(parent()))->selected() == this) {
- paint::color(palette()->border());
- paint::border(global_location(), size());
+ Paint::set_color(palette()->border());
+ Paint::draw_border(global_location(), size());
}
}
@@ -44,11 +44,11 @@ void ListItem::draw()
return;
if ( has_mouse_focus() || ((static_cast<ListView *>(parent()))->selected() == this)) {
- 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 ListItem::on_keypress(const int key, const unsigned int modifier)
@@ -64,4 +64,4 @@ bool ListItem::on_keypress(const int key, const unsigned int modifier)
return false;
}
-} // namespace ui \ No newline at end of file
+} // namespace ui