[Scummvm-cvs-logs] SF.net SVN: scummvm: [27162] scummvm/trunk/engines/agos/agos.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Thu Jun 7 06:08:56 CEST 2007
Revision: 27162
http://scummvm.svn.sourceforge.net/scummvm/?rev=27162&view=rev
Author: Kirben
Date: 2007-06-06 21:08:55 -0700 (Wed, 06 Jun 2007)
Log Message:
-----------
Fix invalid writes in the Amiga demo of Elvira 1, caused by video window 20 using larger height.
Modified Paths:
--------------
scummvm/trunk/engines/agos/agos.cpp
Modified: scummvm/trunk/engines/agos/agos.cpp
===================================================================
--- scummvm/trunk/engines/agos/agos.cpp 2007-06-07 02:51:48 UTC (rev 27161)
+++ scummvm/trunk/engines/agos/agos.cpp 2007-06-07 04:08:55 UTC (rev 27162)
@@ -618,7 +618,11 @@
} else if (getGameType() == GType_WW || getGameType() == GType_ELVIRA2) {
_window4BackScn = (byte *)calloc(224 * 127, 1);
} else if (getGameType() == GType_ELVIRA1) {
- _window4BackScn = (byte *)calloc(224 * 144, 1);
+ if (getPlatform() == Common::kPlatformAmiga && (getFeatures() & GF_DEMO)) {
+ _window4BackScn = (byte *)calloc(224 * 196, 1);
+ } else {
+ _window4BackScn = (byte *)calloc(224 * 144, 1);
+ }
_window6BackScn = (byte *)calloc(48 * 80, 1);
}
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