aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_options.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-28 18:16:48 -0400
committerPaul Gilbert2016-08-28 18:16:48 -0400
commit6dc1551d7db3356868cb9402bcc9e9b75648f52b (patch)
tree4cbe94a03dec89715472b09da876b30558cefcfb /engines/xeen/dialogs_options.cpp
parentfd2d4622966d36299129b3f1654484b49ee0c996 (diff)
downloadscummvm-rg350-6dc1551d7db3356868cb9402bcc9e9b75648f52b.tar.gz
scummvm-rg350-6dc1551d7db3356868cb9402bcc9e9b75648f52b.tar.bz2
scummvm-rg350-6dc1551d7db3356868cb9402bcc9e9b75648f52b.zip
XEEN: gcc compilation fixes
Diffstat (limited to 'engines/xeen/dialogs_options.cpp')
-rw-r--r--engines/xeen/dialogs_options.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/dialogs_options.cpp b/engines/xeen/dialogs_options.cpp
index 4b4974b9aa..757634a2ad 100644
--- a/engines/xeen/dialogs_options.cpp
+++ b/engines/xeen/dialogs_options.cpp
@@ -110,7 +110,7 @@ void OptionsMenu::showTitles1(SpriteResource &sprites) {
while (!_vm->shouldQuit() && !events.isKeyMousePressed()) {
events.updateGameCounter();
- frameNum = ++frameNum % (_vm->getGameID() == GType_WorldOfXeen ? 5 : 10);
+ frameNum = (frameNum + 1) % (_vm->getGameID() == GType_WorldOfXeen ? 5 : 10);
screen.restoreBackground();
sprites.draw(screen, frameNum);
@@ -211,7 +211,7 @@ void WorldOptionsMenu::showContents(SpriteResource &title1, bool waitFlag) {
events.updateGameCounter();
// Draw the background frame in a continous cycle
- _bgFrame = ++_bgFrame % 5;
+ _bgFrame = (_bgFrame + 1) % 5;
title1.draw(screen._windows[0], _bgFrame);
// Draw the basic frame for the optitons menu and title text