aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2009-05-17 11:05:10 +0000
committerTravis Howell2009-05-17 11:05:10 +0000
commit31adbb87691a88895925856b0da5202ca7602715 (patch)
tree482ae64a53a3e200b16fbbac6960c27916407334
parentc0a82959197884e27ecee6cad18f685b5c969614 (diff)
downloadscummvm-rg350-31adbb87691a88895925856b0da5202ca7602715.tar.gz
scummvm-rg350-31adbb87691a88895925856b0da5202ca7602715.tar.bz2
scummvm-rg350-31adbb87691a88895925856b0da5202ca7602715.zip
Fix mouse cursor color in the demo versions of The Feeble Files.
svn-id: r40643
-rw-r--r--engines/agos/cursor.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/agos/cursor.cpp b/engines/agos/cursor.cpp
index 8d9cef38cd..4a1b4d6954 100644
--- a/engines/agos/cursor.cpp
+++ b/engines/agos/cursor.cpp
@@ -656,14 +656,16 @@ void AGOSEngine_Feeble::initMouse() {
}
void AGOSEngine_Simon1::initMouse() {
- _maxCursorWidth = 16;
- _maxCursorHeight = 16;
- _mouseData = (byte *)calloc(_maxCursorWidth * _maxCursorHeight, 1);
- memset(_mouseData, 0xFF, _maxCursorWidth * _maxCursorHeight);
+ AGOSEngine::initMouse();
uint8 color = 225;
- if (getPlatform() == Common::kPlatformAmiga)
+ if (getGameType() == GType_FF && (getFeatures() & GF_DEMO)) {
+ color = 250;
+ } else if (getPlatform() == Common::kPlatformAmiga) {
color = (getFeatures() & GF_32COLOR) ? 17 : 241;
+ }
+
+ memset(_mouseData, 0xFF, _maxCursorWidth * _maxCursorHeight);
const uint16 *src = _common_mouseInfo;
for (int i = 0; i < 16; i++) {