diff options
author | Kostas Nakos | 2008-08-09 18:09:24 +0000 |
---|---|---|
committer | Kostas Nakos | 2008-08-09 18:09:24 +0000 |
commit | 355f100793c8c8946b5fc418f00b2744cd4b2089 (patch) | |
tree | 61cd39600d9295b8d2f1aa71615d5138c676abc0 /engines | |
parent | e02f94d3922b39bdc8d0333c2e9fd602aeb40ef6 (diff) | |
download | scummvm-rg350-355f100793c8c8946b5fc418f00b2744cd4b2089.tar.gz scummvm-rg350-355f100793c8c8946b5fc418f00b2744cd4b2089.tar.bz2 scummvm-rg350-355f100793c8c8946b5fc418f00b2744cd4b2089.zip |
fix MR on ce: allocate large buffer on the heap instead and of the stack, and improve the workaround
svn-id: r33714
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/scene_mr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/scene_mr.cpp b/engines/kyra/scene_mr.cpp index e4a3a5c54e..53c0cb5380 100644 --- a/engines/kyra/scene_mr.cpp +++ b/engines/kyra/scene_mr.cpp @@ -378,10 +378,11 @@ void KyraEngine_MR::loadSceneMsc() { _screen->loadBitmap(filename, 5, 5, 0, true); // HACK - uint8 data[320*200]; + uint8 *data = new uint8[320*200]; _screen->copyRegionToBuffer(5, 0, 0, 320, 200, data); _screen->clearPage(5); _screen->copyBlockToPage(5, 0, _maskPageMinY, 320, height, data); + delete[] data; musicUpdate(0); } |