aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2010-01-11 12:23:04 +0000
committerFilippos Karapetis2010-01-11 12:23:04 +0000
commit6a07bbd5f41960d5c773f116d24c4de741ef3541 (patch)
treef3a6bff00157470e05dade2e2a6a227f77829be7 /engines/sci
parent4400bac9ad00328aff6d00d90d5285fc5fef3b2f (diff)
downloadscummvm-rg350-6a07bbd5f41960d5c773f116d24c4de741ef3541.tar.gz
scummvm-rg350-6a07bbd5f41960d5c773f116d24c4de741ef3541.tar.bz2
scummvm-rg350-6a07bbd5f41960d5c773f116d24c4de741ef3541.zip
Moved all the cache limits inside helpers.h and removed an obsolete TODO
svn-id: r47250
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kgraphics.cpp1
-rw-r--r--engines/sci/graphics/cursor.h2
-rw-r--r--engines/sci/graphics/gfx.h2
-rw-r--r--engines/sci/graphics/helpers.h4
4 files changed, 4 insertions, 5 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 4a0a8bc483..59f960abd9 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -667,7 +667,6 @@ reg_t kPortrait(EngineState *s, int argc, reg_t *argv) {
s->_gui->portraitShow(resourceName, position, resourceNum, noun, verb, cond, seq);
return SIGNAL_REG;
- // TODO: implement this. Looks to be a modified version of kDoSync
} else {
warning("kPortrait(show) called with unsupported argc %d", argc);
}
diff --git a/engines/sci/graphics/cursor.h b/engines/sci/graphics/cursor.h
index c714faff87..087772fc98 100644
--- a/engines/sci/graphics/cursor.h
+++ b/engines/sci/graphics/cursor.h
@@ -35,8 +35,6 @@ namespace Sci {
#define SCI_CURSOR_SCI0_TRANSPARENCYCOLOR 1
-#define MAX_CACHED_CURSORS 10
-
class View;
class SciPalette;
diff --git a/engines/sci/graphics/gfx.h b/engines/sci/graphics/gfx.h
index 6ad6e6c9ec..e9d2f72d2f 100644
--- a/engines/sci/graphics/gfx.h
+++ b/engines/sci/graphics/gfx.h
@@ -36,8 +36,6 @@ namespace Sci {
#define SCI_TEXT_ALIGNMENT_CENTER 1
#define SCI_TEXT_ALIGNMENT_LEFT 0
-#define MAX_CACHED_VIEWS 50
-
class Screen;
class SciPalette;
class Font;
diff --git a/engines/sci/graphics/helpers.h b/engines/sci/graphics/helpers.h
index fdfc5208b4..6799162f40 100644
--- a/engines/sci/graphics/helpers.h
+++ b/engines/sci/graphics/helpers.h
@@ -32,6 +32,10 @@
namespace Sci {
+// Cache limits
+#define MAX_CACHED_CURSORS 10
+#define MAX_CACHED_VIEWS 50
+
#define SCI_SHAKE_DIRECTION_VERTICAL 1
#define SCI_SHAKE_DIRECTION_HORIZONTAL 2