diff options
author | Colin Snover | 2016-07-31 15:19:29 -0500 |
---|---|---|
committer | Colin Snover | 2016-08-19 13:57:40 -0500 |
commit | ff00e93c677e9437aee256b3ff9f1bce7e9b5032 (patch) | |
tree | bd26c93fea92febc6de9f29385dfe9da2d7d4993 /engines/sci/graphics/cache.cpp | |
parent | c8a2b9af225e0ebca7d98f7b1063793a290953cd (diff) | |
download | scummvm-rg350-ff00e93c677e9437aee256b3ff9f1bce7e9b5032.tar.gz scummvm-rg350-ff00e93c677e9437aee256b3ff9f1bce7e9b5032.tar.bz2 scummvm-rg350-ff00e93c677e9437aee256b3ff9f1bce7e9b5032.zip |
SCI32: Remove GfxScreen from SCI32
Diffstat (limited to 'engines/sci/graphics/cache.cpp')
-rw-r--r-- | engines/sci/graphics/cache.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/sci/graphics/cache.cpp b/engines/sci/graphics/cache.cpp index fb1f557ad6..9c77f31a14 100644 --- a/engines/sci/graphics/cache.cpp +++ b/engines/sci/graphics/cache.cpp @@ -95,10 +95,20 @@ int16 GfxCache::kernelViewGetCelHeight(GuiResourceId viewId, int16 loopNo, int16 } int16 GfxCache::kernelViewGetLoopCount(GuiResourceId viewId) { +#ifdef ENABLE_SCI32 + if (getSciVersion() >= SCI_VERSION_2) { + return CelObjView::getNumLoops(viewId); + } +#endif return getView(viewId)->getLoopCount(); } int16 GfxCache::kernelViewGetCelCount(GuiResourceId viewId, int16 loopNo) { +#ifdef ENABLE_SCI32 + if (getSciVersion() >= SCI_VERSION_2) { + return CelObjView::getNumCels(viewId, loopNo); + } +#endif return getView(viewId)->getCelCount(loopNo); } |