From cca744f69a9eb079a314c8f39af1faa4e7b1e5a6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 8 May 2005 21:49:52 +0000 Subject: Comply to our coding conventions svn-id: r17975 --- gui/ListWidget.cpp | 2 +- gui/newgui.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gui') 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) -- cgit v1.2.3