diff options
author | Paul Gilbert | 2012-01-02 10:17:44 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-01-02 10:17:44 +1100 |
commit | 300a04700a94a3899f76300cfe7eda3a5756caef (patch) | |
tree | 7a90c6f065e9c4d963abd137f5f3e8cb2c1315a7 /engines/tsage/graphics.cpp | |
parent | 3f17a3ff252e802858912818f166539604d8fb86 (diff) | |
download | scummvm-rg350-300a04700a94a3899f76300cfe7eda3a5756caef.tar.gz scummvm-rg350-300a04700a94a3899f76300cfe7eda3a5756caef.tar.bz2 scummvm-rg350-300a04700a94a3899f76300cfe7eda3a5756caef.zip |
TSAGE: Implemented changes for dirty rect handling needed for R2R
Diffstat (limited to 'engines/tsage/graphics.cpp')
-rw-r--r-- | engines/tsage/graphics.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp index 4b9a4ad5ad..8436afe2e8 100644 --- a/engines/tsage/graphics.cpp +++ b/engines/tsage/graphics.cpp @@ -1301,6 +1301,25 @@ int GfxManager::getAngle(const Common::Point &p1, const Common::Point &p2) { return result; } } + + +void GfxManager::copyFrom(GfxSurface &src, Rect destBounds, Region *priorityRegion) { + if (&_surface == &(GLOBALS._screenSurface)) + _surface.setBounds(Rect(0, 0, _bounds.width(), _bounds.height())); + else + _surface.setBounds(_bounds); + + _surface.copyFrom(src, destBounds, priorityRegion); +} +void GfxManager::copyFrom(GfxSurface &src, int destX, int destY) { + if (&_surface == &(GLOBALS._screenSurface)) + _surface.setBounds(Rect(0, 0, _bounds.width(), _bounds.height())); + else + _surface.setBounds(_bounds); + + _surface.copyFrom(src, destX, destY); +} + /*--------------------------------------------------------------------------*/ |