diff options
author | Travis Howell | 2006-04-17 00:35:38 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-17 00:35:38 +0000 |
commit | 30645d5e0585140ba13c6c490bb5ed067fea28e1 (patch) | |
tree | 2a266d2a1f9e4f907754947ba6512f6db0a9df4e | |
parent | 632185fb7eac718c46440fed654625535629aca3 (diff) | |
download | scummvm-rg350-30645d5e0585140ba13c6c490bb5ed067fea28e1.tar.gz scummvm-rg350-30645d5e0585140ba13c6c490bb5ed067fea28e1.tar.bz2 scummvm-rg350-30645d5e0585140ba13c6c490bb5ed067fea28e1.zip |
Only allocate scale buffer when using FF
svn-id: r21956
-rw-r--r-- | engines/simon/simon.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp index dc8d56b685..5f8205b957 100644 --- a/engines/simon/simon.cpp +++ b/engines/simon/simon.cpp @@ -3483,7 +3483,8 @@ int SimonEngine::go() { _backGroundBuf = (byte *)calloc(_screenWidth * _screenHeight, 1); _frontBuf = (byte *)calloc(_screenWidth * _screenHeight, 1); _backBuf = (byte *)calloc(_screenWidth * _screenHeight, 1); - _sdl_buf_scaled = (byte *)calloc(_screenWidth * _screenHeight, 1); + if (getGameType() == GType_FF) + _sdl_buf_scaled = (byte *)calloc(_screenWidth * _screenHeight, 1); allocItemHeap(); allocTablesHeap(); |