diff options
author | Eugene Sandulenko | 2013-12-18 15:54:02 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-18 15:54:02 +0200 |
commit | 29773ef1c055ce898c89abcc0415b23d8e10e849 (patch) | |
tree | b02319d06a9fbd5362caa8fa22f8e4ef64f84153 | |
parent | 4fb8e6e66e1c4c0af3cf226d59dc00f2ea44ed1e (diff) | |
download | scummvm-rg350-29773ef1c055ce898c89abcc0415b23d8e10e849.tar.gz scummvm-rg350-29773ef1c055ce898c89abcc0415b23d8e10e849.tar.bz2 scummvm-rg350-29773ef1c055ce898c89abcc0415b23d8e10e849.zip |
FULLPIPE: Implement FullpipeEngine::drawArcadeOverlay()
-rw-r--r-- | engines/fullpipe/input.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/engines/fullpipe/input.cpp b/engines/fullpipe/input.cpp index e2c638ed46..60b6f621ea 100644 --- a/engines/fullpipe/input.cpp +++ b/engines/fullpipe/input.cpp @@ -312,7 +312,30 @@ void FullpipeEngine::setArcadeOverlay(int picId) { } int FullpipeEngine::drawArcadeOverlay(int adjust) { - warning("STUB: drawArcadeOverlay()"); + _arcadeOverlayHelper->drawAt(_sceneRect.left + _arcadeOverlayX, _sceneRect.top + _arcadeOverlayY); + _arcadeOverlay->drawAt(_sceneRect.left + _arcadeOverlayX + _arcadeOverlayMidX, _sceneRect.top + _arcadeOverlayY + _arcadeOverlayMidY); + + if (adjust) { + if (_arcadeOverlayX > 745) { + _arcadeOverlayX -= 15; + + if (_arcadeOverlayX < 745) + _arcadeOverlayX = 745; + } + + return 1; + } + + if (_arcadeOverlayX >= 800) { + return 0; + } else { + _arcadeOverlayX += 15; + + if (_arcadeOverlayX <= 800) + return 1; + + _arcadeOverlayX = 800; + } return 1; } |