aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/gui/gui.cpp')
-rw-r--r--engines/sci/gui/gui.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp
index a9f5915801..40434de5ff 100644
--- a/engines/sci/gui/gui.cpp
+++ b/engines/sci/gui/gui.cpp
@@ -690,6 +690,17 @@ int16 SciGui::getLoopCount(int view) {
return loopCount;
}
+int16 SciGui::getCelCount(int view, int loop) {
+ SciGuiView *tmpView = new SciGuiView(_s->resMan, _screen, _palette, view);
+ if (!tmpView)
+ return -1;
+
+ uint16 celCount = tmpView->getLoopInfo(loop)->celCount;
+ delete tmpView;
+
+ return celCount;
+}
+
bool SciGui::debugUndither(bool flag) {
_screen->unditherSetState(flag);
return false;