[Scummvm-cvs-logs] SF.net SVN: scummvm:[52135] scummvm/trunk/engines/gob
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Tue Aug 17 09:41:16 CEST 2010
Revision: 52135
http://scummvm.svn.sourceforge.net/scummvm/?rev=52135&view=rev
Author: strangerke
Date: 2010-08-17 07:41:15 +0000 (Tue, 17 Aug 2010)
Log Message:
-----------
Fascination - Fix the texts not cleaned up (eg Hotel Hall). Thanks SylvainTV for identifying the problem
Modified Paths:
--------------
scummvm/trunk/engines/gob/draw_v2.cpp
scummvm/trunk/engines/gob/gob.cpp
scummvm/trunk/engines/gob/init.h
scummvm/trunk/engines/gob/module.mk
Added Paths:
-----------
scummvm/trunk/engines/gob/init_fascin.cpp
Modified: scummvm/trunk/engines/gob/draw_v2.cpp
===================================================================
--- scummvm/trunk/engines/gob/draw_v2.cpp 2010-08-16 22:04:15 UTC (rev 52134)
+++ scummvm/trunk/engines/gob/draw_v2.cpp 2010-08-17 07:41:15 UTC (rev 52135)
@@ -230,7 +230,10 @@
destX = (READ_LE_UINT16(ptr) & 0x7FFF) * 2;
spriteRight = READ_LE_UINT16(ptr + 4) * 2 + 1;
} else {
- destX = READ_LE_UINT16(ptr) & 0x7FFF;
+// No mask used for Fascination
+ destX = READ_LE_UINT16(ptr);
+ if (_vm->getGameType() != kGameTypeFascination)
+ destX &= 0x7FFF;
spriteRight = READ_LE_UINT16(ptr + 4);
}
Modified: scummvm/trunk/engines/gob/gob.cpp
===================================================================
--- scummvm/trunk/engines/gob/gob.cpp 2010-08-16 22:04:15 UTC (rev 52134)
+++ scummvm/trunk/engines/gob/gob.cpp 2010-08-17 07:41:15 UTC (rev 52135)
@@ -376,7 +376,7 @@
break;
case kGameTypeFascination:
- _init = new Init_v2(this);
+ _init = new Init_Fascination(this);
_video = new Video_v2(this);
_inter = new Inter_Fascination(this);
_mult = new Mult_v2(this);
Modified: scummvm/trunk/engines/gob/init.h
===================================================================
--- scummvm/trunk/engines/gob/init.h 2010-08-16 22:04:15 UTC (rev 52134)
+++ scummvm/trunk/engines/gob/init.h 2010-08-17 07:41:15 UTC (rev 52135)
@@ -96,7 +96,7 @@
Init_Fascination(GobEngine *vm);
~Init_Fascination();
- void initGame();
+ void updateConfig();
};
} // End of namespace Gob
Added: scummvm/trunk/engines/gob/init_fascin.cpp
===================================================================
--- scummvm/trunk/engines/gob/init_fascin.cpp (rev 0)
+++ scummvm/trunk/engines/gob/init_fascin.cpp 2010-08-17 07:41:15 UTC (rev 52135)
@@ -0,0 +1,49 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#include "common/endian.h"
+
+#include "gob/gob.h"
+#include "gob/init.h"
+#include "gob/game.h"
+#include "gob/global.h"
+
+namespace Gob {
+
+Init_Fascination::Init_Fascination(GobEngine *vm) : Init_v2(vm) {
+}
+
+Init_Fascination::~Init_Fascination() {
+}
+
+void Init_Fascination::updateConfig() {
+// In Fascination, some empty texts are present and used to clean up the text area.
+// Using _doSubtitles does the trick.
+// The first obvious example is in the hotel hall: 'Use ...' is displayed at the same
+// place than the character dialogs.
+ _vm->_global->_doSubtitles = true;
+}
+
+} // End of namespace Gob
Property changes on: scummvm/trunk/engines/gob/init_fascin.cpp
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:keywords
+ Date Rev Author URL Id
Added: svn:eol-style
+ native
Modified: scummvm/trunk/engines/gob/module.mk
===================================================================
--- scummvm/trunk/engines/gob/module.mk 2010-08-16 22:04:15 UTC (rev 52134)
+++ scummvm/trunk/engines/gob/module.mk 2010-08-17 07:41:15 UTC (rev 52135)
@@ -23,6 +23,7 @@
init.o \
init_v1.o \
init_v2.o \
+ init_fascin.o \
init_v3.o \
init_v4.o \
init_v6.o \
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