diff options
author | Thanasis Antoniou | 2019-06-28 15:30:05 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-06-28 15:30:44 +0300 |
commit | a81e3add2f08692030607c8cde7965475793b86b (patch) | |
tree | c7a897ded452d141d110dfb7d0e6d5e1ebf3176f /engines/bladerunner/ui | |
parent | bd75898894e0f65663b1bc93c73d4ce0c7a91482 (diff) | |
download | scummvm-rg350-a81e3add2f08692030607c8cde7965475793b86b.tar.gz scummvm-rg350-a81e3add2f08692030607c8cde7965475793b86b.tar.bz2 scummvm-rg350-a81e3add2f08692030607c8cde7965475793b86b.zip |
BLADERUNNER: JANITORIAL: Code formatting fixes
Diffstat (limited to 'engines/bladerunner/ui')
-rw-r--r-- | engines/bladerunner/ui/esper.cpp | 4 | ||||
-rw-r--r-- | engines/bladerunner/ui/kia.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/ui/kia_section_clues.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/ui/kia_section_crimes.cpp | 6 | ||||
-rw-r--r-- | engines/bladerunner/ui/kia_section_help.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/ui/kia_section_load.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/ui/kia_section_save.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/ui/kia_section_suspects.cpp | 6 | ||||
-rw-r--r-- | engines/bladerunner/ui/spinner.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/ui/ui_scroll_box.cpp | 2 |
10 files changed, 15 insertions, 15 deletions
diff --git a/engines/bladerunner/ui/esper.cpp b/engines/bladerunner/ui/esper.cpp index fd94977fbc..355865f1f2 100644 --- a/engines/bladerunner/ui/esper.cpp +++ b/engines/bladerunner/ui/esper.cpp @@ -823,7 +823,7 @@ void ESPER::drawPhotoSharpening(Graphics::Surface &surface) { surface.hLine(_screen.left, _photoOpeningHeight - 1, _screen.right - 1, surface.format.RGBToColor(0, 144, 0)); surface.vLine(_photoOpeningWidth - 1, _screen.top, _screen.bottom - 1, surface.format.RGBToColor(0, 144, 0)); if (!needMoreSharpening) { - if (_regionSelectedAck && !_regions[_regionSelected].name.empty()){ + if (_regionSelectedAck && !_regions[_regionSelected].name.empty()) { setStatePhoto(kEsperPhotoStateVideoShow); } else { setStatePhoto(kEsperPhotoStateShow); @@ -1467,7 +1467,7 @@ int ESPER::findEmptyRegion() { int ESPER::findRegion(Common::Rect where) { for (int i = 0; i < kRegionCount; ++i) { - if (_regions[i].isPresent && _regions[i].rectOuter.contains(where) && where.contains(_regions[i].rectInner)){ + if (_regions[i].isPresent && _regions[i].rectOuter.contains(where) && where.contains(_regions[i].rectInner)) { return i; } } diff --git a/engines/bladerunner/ui/kia.cpp b/engines/bladerunner/ui/kia.cpp index 70a6d4eff5..9f7cac81d4 100644 --- a/engines/bladerunner/ui/kia.cpp +++ b/engines/bladerunner/ui/kia.cpp @@ -610,7 +610,7 @@ void KIA::mouseDownCallback(int buttonId, void *callbackData) { case 13: case 14: self->_vm->_audioPlayer->playAud(self->_vm->_gameInfo->getSfxTrack(kSfxBUTN5P), 70, 0, 0, 50, 0); - if (buttonId == 12){ + if (buttonId == 12) { self->_vm->_audioPlayer->playAud(self->_vm->_gameInfo->getSfxTrack(kSfxSHUTDOWN), 70, 0, 0, 50, 0); } break; diff --git a/engines/bladerunner/ui/kia_section_clues.cpp b/engines/bladerunner/ui/kia_section_clues.cpp index 35a4294dca..0557402a28 100644 --- a/engines/bladerunner/ui/kia_section_clues.cpp +++ b/engines/bladerunner/ui/kia_section_clues.cpp @@ -386,7 +386,7 @@ void KIASectionClues::populateClues() { int assetType = _vm->_crimesDatabase->getAssetType(i); int crimeId = _vm->_crimesDatabase->getCrime(i); if (assetType != -1 || _debugIntangible) { - if(_filters[getLineIdForAssetType(assetType)] && _filters[getLineIdForCrimeId(crimeId)]) { + if (_filters[getLineIdForAssetType(assetType)] && _filters[getLineIdForCrimeId(crimeId)]) { int flags = 0x30; if (_clues->isPrivate(i)) { flags = 0x08; diff --git a/engines/bladerunner/ui/kia_section_crimes.cpp b/engines/bladerunner/ui/kia_section_crimes.cpp index 99372092a1..9dbe090913 100644 --- a/engines/bladerunner/ui/kia_section_crimes.cpp +++ b/engines/bladerunner/ui/kia_section_crimes.cpp @@ -438,7 +438,7 @@ void KIASectionCrimes::nextCrime() { if (_crimesFoundCount >= 2) { while (true) { ++_crimeSelected; - if (_crimeSelected >= (int)_vm->_gameInfo->getCrimeCount()){ + if (_crimeSelected >= (int)_vm->_gameInfo->getCrimeCount()) { _crimeSelected = 0; } @@ -470,7 +470,7 @@ void KIASectionCrimes::nextSuspect() { if (_suspectsFoundCount >= 2) { while (true) { ++_suspectSelected; - if (_suspectSelected >= (int)_vm->_gameInfo->getSuspectCount()){ + if (_suspectSelected >= (int)_vm->_gameInfo->getSuspectCount()) { _suspectSelected = 0; } @@ -486,7 +486,7 @@ void KIASectionCrimes::prevSuspect() { if (_suspectsFoundCount >= 2) { while (true) { --_suspectSelected; - if (_suspectSelected < 0){ + if (_suspectSelected < 0) { _suspectSelected = _vm->_gameInfo->getSuspectCount() - 1; } diff --git a/engines/bladerunner/ui/kia_section_help.cpp b/engines/bladerunner/ui/kia_section_help.cpp index 1c4da14db7..7f1cb31b01 100644 --- a/engines/bladerunner/ui/kia_section_help.cpp +++ b/engines/bladerunner/ui/kia_section_help.cpp @@ -68,7 +68,7 @@ void KIASectionHelp::close() { _scrollBox->hide(); } -void KIASectionHelp::draw(Graphics::Surface &surface){ +void KIASectionHelp::draw(Graphics::Surface &surface) { _vm->_kia->_shapes->get(69)->draw(surface, 501, 123); _uiContainer->draw(surface); } diff --git a/engines/bladerunner/ui/kia_section_load.cpp b/engines/bladerunner/ui/kia_section_load.cpp index 909f29b2b9..42ace56e0d 100644 --- a/engines/bladerunner/ui/kia_section_load.cpp +++ b/engines/bladerunner/ui/kia_section_load.cpp @@ -96,7 +96,7 @@ void KIASectionLoad::close() { _saveList.clear(); } -void KIASectionLoad::draw(Graphics::Surface &surface){ +void KIASectionLoad::draw(Graphics::Surface &surface) { _vm->_kia->_shapes->get(69)->draw(surface, 501, 123); _uiContainer->draw(surface); diff --git a/engines/bladerunner/ui/kia_section_save.cpp b/engines/bladerunner/ui/kia_section_save.cpp index 86f6b01c94..daa92b45c9 100644 --- a/engines/bladerunner/ui/kia_section_save.cpp +++ b/engines/bladerunner/ui/kia_section_save.cpp @@ -143,7 +143,7 @@ void KIASectionSave::close() { _saveList.clear(); } -void KIASectionSave::draw(Graphics::Surface &surface){ +void KIASectionSave::draw(Graphics::Surface &surface) { _vm->_kia->_shapes->get(69)->draw(surface, 501, 123); _buttons->draw(surface); diff --git a/engines/bladerunner/ui/kia_section_suspects.cpp b/engines/bladerunner/ui/kia_section_suspects.cpp index 220b269f9d..814e343899 100644 --- a/engines/bladerunner/ui/kia_section_suspects.cpp +++ b/engines/bladerunner/ui/kia_section_suspects.cpp @@ -292,7 +292,7 @@ const char *KIASectionSuspects::scrambleSuspectsName(const char *name) { for (int i = 0 ; i < 6; ++i) { if (Common::isAlpha(*namePtr)) { char upper = toupper(*namePtr); - if ( upper < 'J' ){ + if ( upper < 'J' ) { *bufferPtr++ = upper - 16; } else { *bufferPtr++ = upper - 9; @@ -530,7 +530,7 @@ void KIASectionSuspects::nextSuspect() { if (_suspectsFoundCount >= 2) { while (true) { ++_suspectSelected; - if (_suspectSelected >= (int)_vm->_gameInfo->getSuspectCount()){ + if (_suspectSelected >= (int)_vm->_gameInfo->getSuspectCount()) { _suspectSelected = 0; } @@ -546,7 +546,7 @@ void KIASectionSuspects::prevSuspect() { if (_suspectsFoundCount >= 2) { while (true) { --_suspectSelected; - if (_suspectSelected < 0){ + if (_suspectSelected < 0) { _suspectSelected = _vm->_gameInfo->getSuspectCount() - 1; } diff --git a/engines/bladerunner/ui/spinner.cpp b/engines/bladerunner/ui/spinner.cpp index c507e0383d..b6269bbb50 100644 --- a/engines/bladerunner/ui/spinner.cpp +++ b/engines/bladerunner/ui/spinner.cpp @@ -302,7 +302,7 @@ void Spinner::reset() { } void Spinner::resume() { - if(_vqaPlayer == nullptr) { + if (_vqaPlayer == nullptr) { return; } diff --git a/engines/bladerunner/ui/ui_scroll_box.cpp b/engines/bladerunner/ui/ui_scroll_box.cpp index 0273803b24..00a9f5f889 100644 --- a/engines/bladerunner/ui/ui_scroll_box.cpp +++ b/engines/bladerunner/ui/ui_scroll_box.cpp @@ -172,7 +172,7 @@ void UIScrollBox::hide() { _isVisible = false; } -void UIScrollBox::clearLines(){ +void UIScrollBox::clearLines() { _lineCount = 0; _firstLineVisible = 0; |