Skip to content

Commit

Permalink
XEEN: Fix shadowed field warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Mar 6, 2018
1 parent 82c8d93 commit a461a39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions engines/xeen/screen.cpp
Expand Up @@ -163,14 +163,14 @@ void Screen::restoreBackground(int slot) {
blitFrom(_savedScreens[slot - 1]);
}

bool Screen::doScroll(bool rollUp, bool fadeIn) {
bool Screen::doScroll(bool rollUp, bool fadeInFlag) {
Screen &screen = *_vm->_screen;
EventsManager &events = *_vm->_events;
const int SCROLL_L[8] = { 29, 23, 15, -5, -11, -23, -49, -71 };
const int SCROLL_R[8] = { 165, 171, 198, 218, 228, 245, 264, 281 };

if (_vm->_files->_isDarkCc) {
if (fadeIn)
if (fadeInFlag)
screen.fadeIn(2);
return _vm->shouldExit();
}
Expand Down Expand Up @@ -212,7 +212,7 @@ bool Screen::doScroll(bool rollUp, bool fadeIn) {
while (!_vm->shouldExit() && events.timeElapsed() == 0)
events.pollEventsAndWait();

if (i == 0 && fadeIn)
if (i == 0 && fadeInFlag)
screen.fadeIn(2);
}
} else {
Expand All @@ -237,7 +237,7 @@ bool Screen::doScroll(bool rollUp, bool fadeIn) {
while (!_vm->shouldExit() && events.timeElapsed() == 0)
events.pollEventsAndWait();

if (i == 0 && fadeIn)
if (i == 0 && fadeInFlag)
screen.fadeIn(2);
}
}
Expand Down
6 changes: 3 additions & 3 deletions engines/xeen/screen.h
Expand Up @@ -115,11 +115,11 @@ class Screen: public Graphics::Screen {

/**
* Draws the scroll in the background
* @param rollUp If true, rolls up the scroll. If false, unrolls.
* @param fadeIn If true, does an initial fade in
* @param rollUp If true, rolls up the scroll. If false, unrolls.
* @param fadeInFlag If true, does an initial fade in
* @returns True if key or mouse pressed
*/
bool doScroll(bool rollUp, bool fadeIn);
bool doScroll(bool rollUp, bool fadeInFlag);
};

} // End of namespace Xeen
Expand Down

0 comments on commit a461a39

Please sign in to comment.