diff options
author | Stijn Buys <ingar@osirion.org> | 2008-12-27 13:06:26 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-12-27 13:06:26 +0000 |
commit | 82c63c49134a6fca91d908792438e6284dc4cebf (patch) | |
tree | 517f42e0a6260f205162319715ca988dc1bb07f0 /src/ui/console.cc | |
parent | af5c44f97acf333a3c24467f6ccc7a83aea4a2fb (diff) |
Fix text color configuration
Diffstat (limited to 'src/ui/console.cc')
-rw-r--r-- | src/ui/console.cc | 12 |
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() |