aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/cursors.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-03-28 15:20:30 -0400
committerMatthew Hoops2011-03-28 22:26:23 -0400
commite5811cd6c39333cf7a51eb4943bf4ead0aff681c (patch)
tree236d057aa30fdbbf870cf337b8679e276a1fd1d8 /engines/mohawk/cursors.cpp
parent344369c294e4ade7b6f72de27daf794b0d23d3e3 (diff)
downloadscummvm-rg350-e5811cd6c39333cf7a51eb4943bf4ead0aff681c.tar.gz
scummvm-rg350-e5811cd6c39333cf7a51eb4943bf4ead0aff681c.tar.bz2
scummvm-rg350-e5811cd6c39333cf7a51eb4943bf4ead0aff681c.zip
MOHAWK: Allow disabling compilation of Myst
Diffstat (limited to 'engines/mohawk/cursors.cpp')
-rw-r--r--engines/mohawk/cursors.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/mohawk/cursors.cpp b/engines/mohawk/cursors.cpp
index 4a9fcb2ff2..9233a8497c 100644
--- a/engines/mohawk/cursors.cpp
+++ b/engines/mohawk/cursors.cpp
@@ -23,11 +23,9 @@
*
*/
-#include "mohawk/bitmap.h"
#include "mohawk/cursors.h"
+#include "mohawk/mohawk.h"
#include "mohawk/resource.h"
-#include "mohawk/graphics.h"
-#include "mohawk/myst.h"
#include "common/macresman.h"
#include "common/system.h"
@@ -36,6 +34,11 @@
#include "graphics/cursorman.h"
#include "graphics/wincursor.h"
+#ifdef ENABLE_MYST
+#include "mohawk/bitmap.h"
+#include "mohawk/myst.h"
+#endif
+
namespace Mohawk {
static const byte s_bwPalette[] = {
@@ -115,6 +118,8 @@ void DefaultCursorManager::setCursor(uint16 id) {
setMacXorCursor(_vm->getResource(_tag, id));
}
+#ifdef ENABLE_MYST
+
MystCursorManager::MystCursorManager(MohawkEngine_Myst *vm) : _vm(vm) {
_bmpDecoder = new MystBitmap();
}
@@ -159,6 +164,8 @@ void MystCursorManager::setDefaultCursor() {
setCursor(kDefaultMystCursor);
}
+#endif
+
NECursorManager::NECursorManager(const Common::String &appName) {
_exe = new Common::NEResources();