From 82c63c49134a6fca91d908792438e6284dc4cebf Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 27 Dec 2008 13:06:26 +0000 Subject: Fix text color configuration --- src/ui/console.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/ui/console.cc') 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() -- cgit v1.2.3