[Scummvm-cvs-logs] scummvm master -> 4a806d885a95082d2b6d7eef2461adac5dc1ae6a
dreammaster
dreammaster at scummvm.org
Sun Feb 5 10:41:07 CET 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
4a806d885a TSAGE: Clean up the dead code introduced for R2R
Commit: 4a806d885a95082d2b6d7eef2461adac5dc1ae6a
https://github.com/scummvm/scummvm/commit/4a806d885a95082d2b6d7eef2461adac5dc1ae6a
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2012-02-05T01:40:03-08:00
Commit Message:
TSAGE: Clean up the dead code introduced for R2R
Changed paths:
engines/tsage/graphics.cpp
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp
index 3bcad91..2ceb007 100644
--- a/engines/tsage/graphics.cpp
+++ b/engines/tsage/graphics.cpp
@@ -1308,30 +1308,14 @@ int GfxManager::getAngle(const Common::Point &p1, const Common::Point &p2) {
}
}
-// FIXME: The two checks for screenSurface inside these two copyFrom() methods
-// are meant for Ringworld 2, but the corresponding setBounds cases cause
-// issues with the popup menus when right clicking in all games (e.g. the popup
-// menu is always shown on the top left of the screen). Therefore, these two
-// code fragments are disabled for now, till the glitches they cause are fixed.
-
void GfxManager::copyFrom(GfxSurface &src, Rect destBounds, Region *priorityRegion) {
-#if 0
- if (&_surface == &(GLOBALS._screenSurface))
- _surface.setBounds(Rect(0, 0, _bounds.width(), _bounds.height()));
- else
-#endif
- _surface.setBounds(_bounds);
+ _surface.setBounds(_bounds);
_surface.copyFrom(src, destBounds, priorityRegion);
}
void GfxManager::copyFrom(GfxSurface &src, int destX, int destY) {
-#if 0
- if (&_surface == &(GLOBALS._screenSurface))
- _surface.setBounds(Rect(0, 0, _bounds.width(), _bounds.height()));
- else
-#endif
- _surface.setBounds(_bounds);
+ _surface.setBounds(_bounds);
_surface.copyFrom(src, destX, destY);
}
More information about the Scummvm-git-logs
mailing list