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/scrollpane.cc')
-rw-r--r--src/ui/scrollpane.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/scrollpane.cc b/src/ui/scrollpane.cc
index d660663..20325d8 100644
--- a/src/ui/scrollpane.cc
+++ b/src/ui/scrollpane.cc
@@ -171,7 +171,7 @@ void ScrollPane::draw()
int i = (int) lines.size();
for (ui::Text::iterator it = lines.begin(); it != lines.end(); it++) {
if (i <= text_height) {
- render::Text::draw(gl.x, gl.y + y, (*it));
+ render::Text::draw(gl.x(), gl.y() + y, (*it));
y += font()->height();
}
i--;
@@ -179,7 +179,7 @@ void ScrollPane::draw()
} else {
y = height() - font()->height();
for (ui::Text::reverse_iterator rit = lines.rbegin(); (y >= 0) && (rit != lines.rend()); ++rit) {
- render::Text::draw(gl.x, gl.y + y, (*rit));
+ render::Text::draw(gl.x(), gl.y() + y, (*rit));
y -= font()->height();
}
}