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/scrollpane.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/scrollpane.cc') 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(); } } -- cgit v1.2.3