Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
This commit is contained in:
parent
25dde91c7c
commit
8ba75fc522
90 changed files with 694 additions and 709 deletions
|
@ -179,8 +179,7 @@ AmigaOSFilesystemNode::AmigaOSFilesystemNode(const Common::String &p) {
|
|||
const char c = _sPath.lastChar();
|
||||
if (c != '/' && c != ':')
|
||||
_sPath += '/';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
//_bIsDirectory = false;
|
||||
_bIsValid = true;
|
||||
}
|
||||
|
@ -231,15 +230,13 @@ AmigaOSFilesystemNode::AmigaOSFilesystemNode(BPTR pLock, const char *pDisplayNam
|
|||
const char c = _sPath.lastChar();
|
||||
if (c != '/' && c != ':')
|
||||
_sPath += '/';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
//_bIsDirectory = false;
|
||||
_bIsValid = true;
|
||||
}
|
||||
|
||||
IDOS->FreeDosObject(DOS_EXAMINEDATA, pExd);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
debug(6, "ExamineObject() returned NULL");
|
||||
}
|
||||
|
||||
|
@ -369,18 +366,17 @@ bool AmigaOSFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, b
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ERROR_NO_MORE_ENTRIES != IDOS->IoErr() ) {
|
||||
debug(6, "An error occured during ExamineDir");
|
||||
ret = false;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
ret = true;
|
||||
}
|
||||
|
||||
|
||||
IDOS->ReleaseDirContext(context);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
debug(6, "Unable to ObtainDirContext");
|
||||
ret = false;
|
||||
}
|
||||
|
@ -411,8 +407,7 @@ AbstractFSNode *AmigaOSFilesystemNode::getParent() const {
|
|||
if (parentDir) {
|
||||
node = new AmigaOSFilesystemNode(parentDir);
|
||||
IDOS->UnLock(parentDir);
|
||||
}
|
||||
else
|
||||
} else
|
||||
node = new AmigaOSFilesystemNode();
|
||||
|
||||
LEAVE();
|
||||
|
|
|
@ -192,7 +192,6 @@ void OSystem_LINUXMOTO::drawMouse() {
|
|||
dst.h = _mouseCurState.vH;
|
||||
hotX = _mouseCurState.vHotX;
|
||||
hotY = _mouseCurState.vHotY;
|
||||
|
||||
} else {
|
||||
scale = 1;
|
||||
width = _videoMode.overlayWidth;
|
||||
|
@ -201,7 +200,6 @@ void OSystem_LINUXMOTO::drawMouse() {
|
|||
dst.h = _mouseCurState.rH;
|
||||
hotX = _mouseCurState.rHotX;
|
||||
hotY = _mouseCurState.rHotY;
|
||||
|
||||
}
|
||||
|
||||
// The mouse is undrawn using virtual coordinates, i.e. they may be
|
||||
|
@ -414,7 +412,6 @@ void OSystem_LINUXMOTO::internUpdateScreen() {
|
|||
}
|
||||
|
||||
if (_videoMode.mode == GFX_HALF && scalerProc == HalfScale) {
|
||||
|
||||
r->w = r->w / 2;
|
||||
r->h = dst_h / 2;
|
||||
} else {
|
||||
|
@ -425,7 +422,6 @@ void OSystem_LINUXMOTO::internUpdateScreen() {
|
|||
r->x = dst_x;
|
||||
r->y = dst_y;
|
||||
|
||||
|
||||
#ifndef DISABLE_SCALERS
|
||||
if (_videoMode.aspectRatioCorrection && orig_dst_y < height && !_overlayVisible)
|
||||
r->h = stretch200To240((uint8 *) _hwscreen->pixels, dstPitch, r->w, r->h, r->x, r->y, orig_dst_y * scale1);
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
#define USERSPACE_ONLY //don't use kernel mode features
|
||||
|
||||
#ifndef USERSPACE_ONLY
|
||||
|
|
|
@ -23,8 +23,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "agos/agos.h"
|
||||
#include "agos/intern.h"
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "common/endian.h"
|
||||
#include "common/rect.h"
|
||||
#include "common/events.h"
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "common/endian.h"
|
||||
#include "common/util.h"
|
||||
#include "common/system.h"
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "common/system.h"
|
||||
|
||||
#include "graphics/cursorman.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue