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>2008-12-27 13:06:26 +0000
committerStijn Buys <ingar@osirion.org>2008-12-27 13:06:26 +0000
commit82c63c49134a6fca91d908792438e6284dc4cebf (patch)
tree517f42e0a6260f205162319715ca988dc1bb07f0 /src/ui/console.cc
parentaf5c44f97acf333a3c24467f6ccc7a83aea4a2fb (diff)
Fix text color configuration
Diffstat (limited to 'src/ui/console.cc')
-rw-r--r--src/ui/console.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ui/console.cc b/src/ui/console.cc
index 60eecef..66ddf4e 100644
--- a/src/ui/console.cc
+++ b/src/ui/console.cc
@@ -188,17 +188,15 @@ void Console::draw()
console_input->set_location(4, height() - font()->height() -4);
console_input->set_size(s.x, font()->height());
- std::string version(core::name());
- version += ' ';
- version.append(core::version());
-
- gl::color(0.0f, 1.0f, 0.0f, 0.5f);
-
+ math::Color fancy(palette()->fancy());
+ fancy.a = 0.5f;
+ paint::color(fancy);
+ std::string version(core::name() + ' ' + core::version());
s.assign(version.size() * font()->width(), font()->height());
math::Vector2f l(global_location());
l.x += width() - s.width() -4;
l.y += height() - s.height() -4;
- ui::paint::text(l, s, font(), version);
+ paint::text(l, s, font(), version);
}
void Console::save_history()