diff options
author | Strangerke | 2015-12-14 15:27:14 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:05 +0100 |
commit | 52d0243eff241d59397fe6237c1959e24d51dbb8 (patch) | |
tree | 64fcef218d4d0266e8f7d1f0371fe5a267a7a1dd /engines/lab/utils.cpp | |
parent | acaece288f4d6b903d1163d2906fa6d5c2ce84ad (diff) | |
download | scummvm-rg350-52d0243eff241d59397fe6237c1959e24d51dbb8.tar.gz scummvm-rg350-52d0243eff241d59397fe6237c1959e24d51dbb8.tar.bz2 scummvm-rg350-52d0243eff241d59397fe6237c1959e24d51dbb8.zip |
LAB: Fix the coding style of a some if/else statements
Diffstat (limited to 'engines/lab/utils.cpp')
-rw-r--r-- | engines/lab/utils.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/engines/lab/utils.cpp b/engines/lab/utils.cpp index 032a74fd3b..89af44e2ea 100644 --- a/engines/lab/utils.cpp +++ b/engines/lab/utils.cpp @@ -60,7 +60,6 @@ uint16 Utils::scaleY(uint16 y) { return ((y * 10) / 24); } - uint16 Utils::mapScaleX(uint16 x) { if (_vm->_isHiRes) return (x - 45); @@ -110,9 +109,8 @@ Common::Point Utils::vgaUnscale(Common::Point pos) { if (_vm->_isHiRes) { result.x = pos.x / 2; result.y = (pos.y * 5) / 12; - } else { + } else result = pos; - } return result; } @@ -213,9 +211,7 @@ void Utils::VUnDiffByteByte(byte *dest, byte *diff, uint16 bytesPerRow) { if (skip == 255) { counter += copy; break; - } - - else { + } else { curPtr += (skip * bytesPerRow); while (copy) { @@ -248,9 +244,7 @@ void Utils::VUnDiffByteWord(uint16 *dest, uint16 *diff, uint16 bytesPerRow) { if (skip == 255) { counter += copy; break; - } - - else { + } else { curPtr += (skip * wordsPerRow); while (copy) { @@ -283,9 +277,7 @@ void Utils::VUnDiffByteLong(uint32 *dest, uint32 *diff, uint16 bytesPerRow) { if (skip == 255) { counter += copy; break; - } - - else { + } else { _curPtr += (skip * longsperrow); while (copy) { |