Fix invalid writes in the Amiga demo of Elvira 1, caused by video window 20 using larger height.

svn-id: r27162
This commit is contained in:
Travis Howell 2007-06-07 04:08:55 +00:00
parent a18357580b
commit 6db23fa056

View File

@ -618,7 +618,11 @@ int AGOSEngine::init() {
} 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);
}