aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/macventure/gui.h')
-rw-r--r--engines/macventure/gui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/macventure/gui.h b/engines/macventure/gui.h
index aea6733d2f..902aa8c142 100644
--- a/engines/macventure/gui.h
+++ b/engines/macventure/gui.h
@@ -364,7 +364,7 @@ public:
target->fillRect(target->getBounds(), kColorWhite);
const Graphics::Font *font = &_gui->getCurrentFont();
uint y = target->h - font->getFontHeight();
- for (uint i = _lines.size() - 1; i != 0; i--) {
+ for (uint i = _scrollPos; i != 0; i--) {
font->drawString(target, _lines[i], leftOffset, y, font->getStringWidth(_lines[i]), kColorBlack);
y -= font->getFontHeight();
}