mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 20:55:19 +00:00
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:
parent
a18357580b
commit
6db23fa056
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user