diff options
author | Paul Gilbert | 2011-12-18 18:08:45 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-12-18 18:08:45 +1100 |
commit | f69dfba21a5d4be8cc60a20a0dd0628717fa5373 (patch) | |
tree | 3665e7294b4729d81dbb66e677de365ea11fcd53 /engines/tsage/globals.cpp | |
parent | 9818def85b7ede9635a918e3635b521de7e996b2 (diff) | |
download | scummvm-rg350-f69dfba21a5d4be8cc60a20a0dd0628717fa5373.tar.gz scummvm-rg350-f69dfba21a5d4be8cc60a20a0dd0628717fa5373.tar.bz2 scummvm-rg350-f69dfba21a5d4be8cc60a20a0dd0628717fa5373.zip |
TSAGE: Implemented dirty rect handling in the engine
This should help improve performance when scalers are being used.
Diffstat (limited to 'engines/tsage/globals.cpp')
-rw-r--r-- | engines/tsage/globals.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/tsage/globals.cpp b/engines/tsage/globals.cpp index 769ad4c054..1d0e37d071 100644 --- a/engines/tsage/globals.cpp +++ b/engines/tsage/globals.cpp @@ -108,9 +108,15 @@ Globals::Globals() : _dialogCenter(160, 140), _gfxManagerInstance(_screenSurface _color2 = _gfxColors.foreground; _color3 = _gfxColors.foreground; } - _screenSurface.setScreenSurface(); + + // Set up a buffer for the screen surface + _screenSurface.create(SCREEN_WIDTH, SCREEN_HEIGHT); + _screenSurface.trackDirtyRects(); + + // Add the global graphics manager to the graphic manager list _gfxManagers.push_back(&_gfxManagerInstance); + // Set up the global scene objects list _sceneObjects = &_sceneObjectsInstance; _sceneObjects_queue.push_front(_sceneObjects); |