aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2011-02-01 18:09:01 +0000
committerAlyssa Milburn2011-02-01 18:09:01 +0000
commitee200c946dd66cee714855005aa16a1b488ebfce (patch)
treefb55f07d76ff76cdb28a78148b3767aaada278c6
parent26f5523156efd1ec98ea85a5ce72cfa0cb3453c0 (diff)
downloadscummvm-rg350-ee200c946dd66cee714855005aa16a1b488ebfce.tar.gz
scummvm-rg350-ee200c946dd66cee714855005aa16a1b488ebfce.tar.bz2
scummvm-rg350-ee200c946dd66cee714855005aa16a1b488ebfce.zip
MOHAWK: Add LB poetry mode logic to updatePage.
svn-id: r55709
-rw-r--r--engines/mohawk/livingbooks.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index a3127595b3..b384c6af28 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -391,6 +391,17 @@ void MohawkEngine_LivingBooks::updatePage() {
case 1:
debug(2, "updatePage() for control page 1 (menu)");
+ if (_poetryMode) {
+ for (uint16 i = 0; i < _numPages; i++) {
+ item = getItemById(1000 + i);
+ if (item)
+ item->setVisible(_curSelectedPage == i + 1);
+ item = getItemById(1100 + i);
+ if (item)
+ item->setVisible(_curSelectedPage == i + 1);
+ }
+ }
+
for (uint16 i = 0; i < _numLanguages; i++) {
item = getItemById(100 + i);
if (item)