mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
TSAGE: Clean up the dead code introduced for R2R
This commit is contained in:
parent
45e61b985c
commit
4a806d885a
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user