Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/console.cc')
-rw-r--r--src/ui/console.cc12
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);
}