mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
MORTEVIELLE: Use variable size for _rightFramePict in order to handle the different sizes of the Amiga and Atari versions
This commit is contained in:
parent
51f6966656
commit
e86ec8bc81
@ -102,10 +102,12 @@ MortevielleEngine::MortevielleEngine(OSystem *system, const ADGameDescription *g
|
||||
|
||||
memset(_mem, 0, sizeof(_mem));
|
||||
_curPict = nullptr;
|
||||
_rightFramePict = nullptr;
|
||||
}
|
||||
|
||||
MortevielleEngine::~MortevielleEngine() {
|
||||
free(_curPict);
|
||||
free(_rightFramePict);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -476,7 +476,8 @@ public:
|
||||
// TODO: Replace the following with proper implementations, or refactor out the code using them
|
||||
byte _mem[65536 * 16];
|
||||
byte *_curPict;
|
||||
byte _rightFramePict[1664];
|
||||
byte *_rightFramePict;
|
||||
|
||||
Debugger _debugger;
|
||||
ScreenSurface _screenSurface;
|
||||
PaletteManager _paletteManager;
|
||||
|
@ -2570,7 +2570,9 @@ void MortevielleEngine::adzon() {
|
||||
if (!f.open("dec.mor"))
|
||||
error("Missing file - dec.mor");
|
||||
|
||||
f.read(_rightFramePict, 1664);
|
||||
free(_rightFramePict);
|
||||
_rightFramePict = (byte *)malloc(sizeof(byte) * f.size());
|
||||
f.read(_rightFramePict, f.size());
|
||||
f.close();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user