diff options
author | Johannes Schickel | 2008-11-14 22:08:10 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-11-14 22:08:10 +0000 |
commit | 5a0556f09ca89886fda55d333745a672ea14e022 (patch) | |
tree | 698d0162a6737c298f8c6d313209e18a056f7684 /engines/scumm | |
parent | bb87d39424c9dee6fbfddf8b806a5675bcf39494 (diff) | |
download | scummvm-rg350-5a0556f09ca89886fda55d333745a672ea14e022.tar.gz scummvm-rg350-5a0556f09ca89886fda55d333745a672ea14e022.tar.bz2 scummvm-rg350-5a0556f09ca89886fda55d333745a672ea14e022.zip |
Committed my patch #2123680 "SDL: Backend transaction / rollback support".
svn-id: r35062
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/scumm.cpp | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 8ee880691b..0869a3dff6 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -822,10 +822,7 @@ ScummEngine_vCUPhe::~ScummEngine_vCUPhe() { } Common::Error ScummEngine_vCUPhe::init() { - _system->beginGFXTransaction(); - _system->initSize(CUP_Player::kDefaultVideoWidth, CUP_Player::kDefaultVideoHeight); - initCommonGFX(true); - _system->endGFXTransaction(); + initGraphics(CUP_Player::kDefaultVideoWidth, CUP_Player::kDefaultVideoHeight, true); return Common::kNoError; } @@ -1069,23 +1066,16 @@ Common::Error ScummEngine::init() { loadCJKFont(); // Initialize backend - _system->beginGFXTransaction(); - bool defaultTo1XScaler = false; - if (_renderMode == Common::kRenderHercA || _renderMode == Common::kRenderHercG) { - _system->initSize(Common::kHercW, Common::kHercH); - defaultTo1XScaler = true; - } else if (_useCJKMode) { - _system->initSize(_screenWidth * _textSurfaceMultiplier, _screenHeight * _textSurfaceMultiplier); - - // CJK FT and DIG use usual NUT fonts, not FM-TOWNS ROM, so - // there is no text surface for them. This takes that into account - defaultTo1XScaler = (_screenWidth * _textSurfaceMultiplier > 320); - } else { - _system->initSize(_screenWidth, _screenHeight); - defaultTo1XScaler = (_screenWidth > 320); - } - initCommonGFX(defaultTo1XScaler); - _system->endGFXTransaction(); + if (_renderMode == Common::kRenderHercA || _renderMode == Common::kRenderHercG) { + initGraphics(Common::kHercW, Common::kHercH, true); + } else if (_useCJKMode) { + initGraphics(_screenWidth * _textSurfaceMultiplier, _screenHeight * _textSurfaceMultiplier, + // CJK FT and DIG use usual NUT fonts, not FM-TOWNS ROM, so + // there is no text surface for them. This takes that into account + (_screenWidth * _textSurfaceMultiplier > 320)); + } else { + initGraphics(_screenWidth, _screenHeight, _screenWidth > 320); + } setupScumm(); |