aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/menusystem.cpp
diff options
context:
space:
mode:
authorEric Fry2018-06-27 22:22:07 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit9ad048f8a6c6380fe8ca6534afcae30d3b1ada37 (patch)
tree008a086686b2659dbb24e040649159fe21c3e1b2 /engines/illusions/menusystem.cpp
parentd36eae4c17f15fe05d5a18508dd0b6fddfa1c96f (diff)
downloadscummvm-rg350-9ad048f8a6c6380fe8ca6534afcae30d3b1ada37.tar.gz
scummvm-rg350-9ad048f8a6c6380fe8ca6534afcae30d3b1ada37.tar.bz2
scummvm-rg350-9ad048f8a6c6380fe8ca6534afcae30d3b1ada37.zip
ILLUSIONS: Fix formatting
Remove debug code from bbdou menu item select callback
Diffstat (limited to 'engines/illusions/menusystem.cpp')
-rw-r--r--engines/illusions/menusystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/illusions/menusystem.cpp b/engines/illusions/menusystem.cpp
index 816b17d14e..b33da1333b 100644
--- a/engines/illusions/menusystem.cpp
+++ b/engines/illusions/menusystem.cpp
@@ -257,7 +257,7 @@ void BaseMenuSystem::placeActorHoverBackground() {
WidthHeight textInfoDimensions;
_vm->_screenText->getTextInfoDimensions(textInfoDimensions);
- if ( _activeMenu->_backgroundColor && _activeMenu->_borderColor != _activeMenu->_backgroundColor)
+ if (_activeMenu->_backgroundColor && _activeMenu->_borderColor != _activeMenu->_backgroundColor)
textInfoDimensions._width -= 6;
WidthHeight frameDimensions;
@@ -567,7 +567,7 @@ bool BaseMenuSystem::calcMenuItemTextPositionAtPoint(Common::Point pt, int &offs
FontResource *font = _vm->_dict->findFont(_activeMenu->_fontId);
uint curX = 0;
- for (int i=0; i < text.size(); i++) {
+ for (int i = 0; i < text.size(); i++) {
int16 w = font->getCharInfo(text[i])->_width;
if (x >= curX && x <= curX + w) {
offset = i;