aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/ad/ad_response_box.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-26 20:49:59 +0200
committerEinar Johan Trøan Sømåen2012-07-26 20:49:59 +0200
commit2c530bc6edc9ffd95fa86488a663e67d2735041f (patch)
tree52386c21252db1ec6333b89e12a84dbb5d5d11bd /engines/wintermute/ad/ad_response_box.cpp
parent4eda234611bd77f053defe9e61d592b308270eaa (diff)
downloadscummvm-rg350-2c530bc6edc9ffd95fa86488a663e67d2735041f.tar.gz
scummvm-rg350-2c530bc6edc9ffd95fa86488a663e67d2735041f.tar.bz2
scummvm-rg350-2c530bc6edc9ffd95fa86488a663e67d2735041f.zip
WINTERMUTE: var_name -> varName
Diffstat (limited to 'engines/wintermute/ad/ad_response_box.cpp')
-rw-r--r--engines/wintermute/ad/ad_response_box.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/wintermute/ad/ad_response_box.cpp b/engines/wintermute/ad/ad_response_box.cpp
index c566120405..07df0a88ee 100644
--- a/engines/wintermute/ad/ad_response_box.cpp
+++ b/engines/wintermute/ad/ad_response_box.cpp
@@ -453,22 +453,22 @@ bool AdResponseBox::display() {
// shift down if needed
if (!_horizontal) {
- int total_height = 0;
+ int totalHeight = 0;
for (i = 0; i < _respButtons.getSize(); i++) {
- total_height += (_respButtons[i]->_height + _spacing);
+ totalHeight += (_respButtons[i]->_height + _spacing);
}
- total_height -= _spacing;
+ totalHeight -= _spacing;
switch (_verticalAlign) {
case VAL_BOTTOM:
- if (yyy + total_height < rect.bottom) {
- yyy = rect.bottom - total_height;
+ if (yyy + totalHeight < rect.bottom) {
+ yyy = rect.bottom - totalHeight;
}
break;
case VAL_CENTER:
- if (yyy + total_height < rect.bottom) {
- yyy += ((rect.bottom - rect.top) - total_height) / 2;
+ if (yyy + totalHeight < rect.bottom) {
+ yyy += ((rect.bottom - rect.top) - totalHeight) / 2;
}
break;