[Scummvm-cvs-logs] SF.net SVN: scummvm: [27163] scummvm/branches/branch-0-10-0/engines/agos/ agos.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Thu Jun 7 06:09:43 CEST 2007
Revision: 27163
http://scummvm.svn.sourceforge.net/scummvm/?rev=27163&view=rev
Author: Kirben
Date: 2007-06-06 21:09:41 -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/branches/branch-0-10-0/engines/agos/agos.cpp
Modified: scummvm/branches/branch-0-10-0/engines/agos/agos.cpp
===================================================================
--- scummvm/branches/branch-0-10-0/engines/agos/agos.cpp 2007-06-07 04:08:55 UTC (rev 27162)
+++ scummvm/branches/branch-0-10-0/engines/agos/agos.cpp 2007-06-07 04:09:41 UTC (rev 27163)
@@ -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