diff options
author | athrxx | 2012-11-17 20:15:48 +0100 |
---|---|---|
committer | athrxx | 2012-11-18 00:03:22 +0100 |
commit | c8a73d30cf014d8b31822b78877dd8d9fec674f6 (patch) | |
tree | 72534f5005032cca3071b470ebd3c178b6a67037 /engines/kyra/kyra_rpg.cpp | |
parent | c63ba1fd5fc736c405e73c996adc8cbd15b50571 (diff) | |
download | scummvm-rg350-c8a73d30cf014d8b31822b78877dd8d9fec674f6.tar.gz scummvm-rg350-c8a73d30cf014d8b31822b78877dd8d9fec674f6.tar.bz2 scummvm-rg350-c8a73d30cf014d8b31822b78877dd8d9fec674f6.zip |
KYRA: (EOB) - cleaning up CGA/EGA graphics code
- fix some glitches in CGA rendering mode
- revert most of 66da4777d476c6a9fc2a13351e3b30afc748fd94 (instead of having lots of EGA dithering routines throughout the whole EOB code we're going to implement some post-processing code in updateScreen())
Diffstat (limited to 'engines/kyra/kyra_rpg.cpp')
-rw-r--r-- | engines/kyra/kyra_rpg.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/kyra/kyra_rpg.cpp b/engines/kyra/kyra_rpg.cpp index f1d9550e8f..df2297ebfd 100644 --- a/engines/kyra/kyra_rpg.cpp +++ b/engines/kyra/kyra_rpg.cpp @@ -46,12 +46,7 @@ KyraRpgEngine::KyraRpgEngine(OSystem *system, const GameFlags &flags) : KyraEngi _vcnTransitionMask = 0; _vcnShift = 0; _vcnColTable = 0; - _vcnBlockWidth = 4; - _vcnBlockHeight = 8; - _vcnFlip0 = 0; - _vcnFlip1 = 1; _vmpPtr = 0; - _vmpSize = 0; _blockBrightness = _wllVcnOffset = 0; _blockDrawingBuffer = 0; _sceneWindowBuffer = 0; @@ -173,9 +168,8 @@ Common::Error KyraRpgEngine::init() { _blockDrawingBuffer = new uint16[1320]; memset(_blockDrawingBuffer, 0, 1320 * sizeof(uint16)); - uint32 swbSize = 22 * _vcnBlockWidth * 2 * 15 * _vcnBlockHeight; - _sceneWindowBuffer = new uint8[swbSize]; - memset(_sceneWindowBuffer, 0, swbSize); + _sceneWindowBuffer = new uint8[21120]; + memset(_sceneWindowBuffer, 0, 21120); _lvlShapeTop = new int16[18]; memset(_lvlShapeTop, 0, 18 * sizeof(int16)); |