diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/ListWidget.cpp | 2 | ||||
-rw-r--r-- | gui/newgui.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp index a6cf672f6d..929a8a8319 100644 --- a/gui/ListWidget.cpp +++ b/gui/ListWidget.cpp @@ -381,7 +381,7 @@ void ListWidget::startEditMode() { } void ListWidget::endEditMode() { - if(!_editMode) + if (!_editMode) return; // send a message that editing finished with a return/enter key press _editMode = false; diff --git a/gui/newgui.cpp b/gui/newgui.cpp index b46039a1fd..7267f65e29 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -75,7 +75,7 @@ void NewGui::updateColors() { } void NewGui::updateScaleFactor() { - if(!_scaleEnable) { + if (!_scaleEnable) { _scaleFactor = 1; } else { enum { @@ -477,9 +477,9 @@ void NewGui::drawBitmap(uint32 *bitmap, int tx, int ty, OverlayColor color, int if (ty + y < 0 || ty + y >= _screen.h) continue; for (int x = 0; x < 8 * _scaleFactor; x++) { - if(!(x % 2) && _scaleFactor != 1 && x != 0) + if (!(x % 2) && _scaleFactor != 1 && x != 0) mask >>= 4; - else if(_scaleFactor == 1) + else if (_scaleFactor == 1) mask >>= 4; if (tx + x < 0 || tx + x >= _screen.w) |