[Scummvm-cvs-logs] SF.net SVN: scummvm:[40643] scummvm/trunk/engines/agos/cursor.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Sun May 17 13:05:10 CEST 2009
Revision: 40643
http://scummvm.svn.sourceforge.net/scummvm/?rev=40643&view=rev
Author: Kirben
Date: 2009-05-17 11:05:10 +0000 (Sun, 17 May 2009)
Log Message:
-----------
Fix mouse cursor color in the demo versions of The Feeble Files.
Modified Paths:
--------------
scummvm/trunk/engines/agos/cursor.cpp
Modified: scummvm/trunk/engines/agos/cursor.cpp
===================================================================
--- scummvm/trunk/engines/agos/cursor.cpp 2009-05-17 10:40:28 UTC (rev 40642)
+++ scummvm/trunk/engines/agos/cursor.cpp 2009-05-17 11:05:10 UTC (rev 40643)
@@ -656,15 +656,17 @@
}
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++) {
for (int j = 0; j < 16; j++) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list