aboutsummaryrefslogtreecommitdiff
path: root/gfx.cpp
diff options
context:
space:
mode:
authorJames Brown2002-04-18 15:02:57 +0000
committerJames Brown2002-04-18 15:02:57 +0000
commit636d975ddea10fe7b3c882085792d0a7dc662665 (patch)
tree5783ed5ab3f135112e459416fa42daa7d0991e9d /gfx.cpp
parent7a9a6f0363d6bd08b50e9fa0ab7e5856b5594939 (diff)
downloadscummvm-rg350-636d975ddea10fe7b3c882085792d0a7dc662665.tar.gz
scummvm-rg350-636d975ddea10fe7b3c882085792d0a7dc662665.tar.bz2
scummvm-rg350-636d975ddea10fe7b3c882085792d0a7dc662665.zip
Don't shake when GUI is displayed.
svn-id: r3995
Diffstat (limited to 'gfx.cpp')
-rw-r--r--gfx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx.cpp b/gfx.cpp
index b95b7d5cf7..2ff1afda30 100644
--- a/gfx.cpp
+++ b/gfx.cpp
@@ -21,6 +21,7 @@
#include "stdafx.h"
#include "scumm.h"
+#include "gui.h"
void Scumm::getGraphicsPerformance()
{
@@ -151,7 +152,7 @@ void Scumm::drawDirtyScreenParts()
}
/* Handle shaking */
- if (_shakeEnabled) {
+ if (_shakeEnabled && !_gui->_active) {
_shakeFrame = (_shakeFrame + 1) & (NUM_SHAKE_POSITIONS - 1);
_system->set_shake_pos(shake_positions[_shakeFrame]);
}