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/scrollpane.cc | |
parent | 95cc140404c6524ea16e193e1421e826b239114f (diff) |
more constness
Diffstat (limited to 'src/ui/scrollpane.cc')
-rw-r--r-- | src/ui/scrollpane.cc | 4 |
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(); } } |