diff options
author | Simei Yin | 2018-04-29 09:52:48 +0200 |
---|---|---|
committer | Simei Yin | 2018-04-29 09:57:32 +0200 |
commit | 4b271c6e7cb70313c498cbf6b9f888f95b77d918 (patch) | |
tree | 000f7d9fa240174c16ca814ba4057e22f028a0d1 /engines/sludge/transition.cpp | |
parent | 8b91fe536c072db4a88d797758d0b27e394f86bc (diff) | |
download | scummvm-rg350-4b271c6e7cb70313c498cbf6b9f888f95b77d918.tar.gz scummvm-rg350-4b271c6e7cb70313c498cbf6b9f888f95b77d918.tar.bz2 scummvm-rg350-4b271c6e7cb70313c498cbf6b9f888f95b77d918.zip |
SLUDGE: Remove global variable fadeMode and move transition functions to GraphicsManager
Diffstat (limited to 'engines/sludge/transition.cpp')
-rw-r--r-- | engines/sludge/transition.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/sludge/transition.cpp b/engines/sludge/transition.cpp index ddefbe9861..35f650e8e4 100644 --- a/engines/sludge/transition.cpp +++ b/engines/sludge/transition.cpp @@ -29,8 +29,6 @@ namespace Sludge { extern float snapTexW, snapTexH; -byte fadeMode = 2; - void GraphicsManager::setBrightnessLevel(int brightnessLevel) { if (brightnessLevel < 0) @@ -151,7 +149,7 @@ void transitionSnapshotBox() { uint32 randbuffer[KK][2]; // history buffer int p1, p2; -void resetRandW() { +void GraphicsManager::resetRandW() { int32 seed = 12345; for (int i = 0; i < KK; i++) { @@ -382,8 +380,8 @@ void transitionBlinds() { //---------------------------------------------------- -void fixBrightness() { - switch (fadeMode) { +void GraphicsManager::fixBrightness() { + switch (_fadeMode) { case 0: transitionFader(); break; |