From d763e294f44eb38b94bf7e2055b77a982b72b7c0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 16 Aug 2009 17:34:00 +0000 Subject: more constness --- src/ui/console.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ui/console.cc') diff --git a/src/ui/console.cc b/src/ui/console.cc index 5f7313b..4fcba7d 100644 --- a/src/ui/console.cc +++ b/src/ui/console.cc @@ -181,14 +181,14 @@ void Console::draw() } math::Vector2f s(size()); - s.x -= 8; - s.y -= 8; + s[0] -= 8; + s[1] -= 8; console_scrollpane->set_location(4, 4); - console_scrollpane->set_size(s.x, s.y - font()->height()); + console_scrollpane->set_size(s.width(), s.height() - font()->height()); console_input->set_location(4, height() - font()->height() -4); - console_input->set_size(s.x, font()->height()); + console_input->set_size(s.width(), font()->height()); math::Color fancy(palette()->fancy()); fancy.a = 0.5f; @@ -196,8 +196,8 @@ void Console::draw() 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; + l[0] += width() - s.width() -4; + l[1] += height() - s.height() -4; paint::text(l, s, font(), version); } -- cgit v1.2.3