diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-16 17:34:00 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-16 17:34:00 +0000 |
commit | d763e294f44eb38b94bf7e2055b77a982b72b7c0 (patch) | |
tree | 37f91c6b7fee58fcecfbfc54dda3f71eb8617b9f /src/ui/console.cc | |
parent | 95cc140404c6524ea16e193e1421e826b239114f (diff) |
more constness
Diffstat (limited to 'src/ui/console.cc')
-rw-r--r-- | src/ui/console.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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); } |