aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorJohannes Schickel2008-11-14 22:08:10 +0000
committerJohannes Schickel2008-11-14 22:08:10 +0000
commit5a0556f09ca89886fda55d333745a672ea14e022 (patch)
tree698d0162a6737c298f8c6d313209e18a056f7684 /engines/sword2
parentbb87d39424c9dee6fbfddf8b806a5675bcf39494 (diff)
downloadscummvm-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/sword2')
-rw-r--r--engines/sword2/screen.cpp2
-rw-r--r--engines/sword2/sword2.cpp6
2 files changed, 2 insertions, 6 deletions
diff --git a/engines/sword2/screen.cpp b/engines/sword2/screen.cpp
index d793e46192..d656674a98 100644
--- a/engines/sword2/screen.cpp
+++ b/engines/sword2/screen.cpp
@@ -52,8 +52,6 @@ Screen::Screen(Sword2Engine *vm, int16 width, int16 height) {
_dirtyGrid = _buffer = NULL;
- _vm->_system->initSize(width, height);
-
_screenWide = width;
_screenDeep = height;
diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp
index 7602368cac..39c04da592 100644
--- a/engines/sword2/sword2.cpp
+++ b/engines/sword2/sword2.cpp
@@ -371,10 +371,8 @@ Common::Error Sword2Engine::init() {
_resman = NULL;
_memory = NULL;
- _system->beginGFXTransaction();
- initCommonGFX(true);
- _screen = new Screen(this, 640, 480);
- _system->endGFXTransaction();
+ initGraphics(640, 480, true);
+ _screen = new Screen(this, 640, 480);
// Create the debugger as early as possible (but not before the
// screen object!) so that errors can be displayed in it. In