aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/PalmOS/Src
diff options
context:
space:
mode:
authorMax Horn2007-09-18 20:16:33 +0000
committerMax Horn2007-09-18 20:16:33 +0000
commit3abc11611e1d1d93f1cf794df28879de3571bd01 (patch)
treee1ac8a925d1388f8df010a114d7bed471fc9fe3b /backends/platform/PalmOS/Src
parentc3d3aebe87d16d4fc3b7ac8581b99fb97241c9ac (diff)
downloadscummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.gz
scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.bz2
scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.zip
Code formatting fixes
svn-id: r28945
Diffstat (limited to 'backends/platform/PalmOS/Src')
-rw-r--r--backends/platform/PalmOS/Src/args.cpp10
-rw-r--r--backends/platform/PalmOS/Src/base_event.cpp2
-rw-r--r--backends/platform/PalmOS/Src/base_gfx.cpp2
-rw-r--r--backends/platform/PalmOS/Src/extend.cpp8
-rw-r--r--backends/platform/PalmOS/Src/init_sony.cpp2
-rw-r--r--backends/platform/PalmOS/Src/os5_mouse.cpp2
-rw-r--r--backends/platform/PalmOS/Src/snd_pa1.cpp2
7 files changed, 14 insertions, 14 deletions
diff --git a/backends/platform/PalmOS/Src/args.cpp b/backends/platform/PalmOS/Src/args.cpp
index 941072aff8..bfc34866e3 100644
--- a/backends/platform/PalmOS/Src/args.cpp
+++ b/backends/platform/PalmOS/Src/args.cpp
@@ -16,7 +16,7 @@ Char **ArgsInit() {
// initial position
argvP++;
- for(UInt8 count = 0; count < MAX_ARG; count++)
+ for (UInt8 count = 0; count < MAX_ARG; count++)
argvP[count] = NULL;
return argvP;
@@ -49,7 +49,7 @@ void ArgsFree(Char **argvP) {
MemHandle oldH;
- for(UInt8 count = 0; count < MAX_ARG; count++)
+ for (UInt8 count = 0; count < MAX_ARG; count++)
if (argvP[count]) {
oldH = MemPtrRecoverHandle(argvP[count]);
MemHandleUnlock(oldH);
@@ -68,7 +68,7 @@ void ArgsSetOwner(Char **argvP, UInt16 owner) {
MemHandle oldH;
- for(UInt8 count = 0; count < MAX_ARG; count++)
+ for (UInt8 count = 0; count < MAX_ARG; count++)
if (argvP[count]) {
oldH = MemPtrRecoverHandle(argvP[count]);
MemHandleSetOwner(oldH, owner);
@@ -81,7 +81,7 @@ void ArgsSetOwner(Char **argvP, UInt16 owner) {
void ArgsExportInit(Char **argvP, UInt32 countArg, Boolean arm) {
if (arm) {
- for(UInt8 count = 0; count < MAX_ARG; count++)
+ for (UInt8 count = 0; count < MAX_ARG; count++)
if (argvP[count])
argvP[count] = (Char *)ByteSwap32(argvP[count]);
}
@@ -96,7 +96,7 @@ void ArgsExportRelease(Boolean arm) {
Err e = FtrGet(appFileCreator, ftrArgsData, (UInt32 *)&argvP);
if (argvP)
- for(UInt8 count = 0; count < MAX_ARG; count++)
+ for (UInt8 count = 0; count < MAX_ARG; count++)
if (argvP[count])
argvP[count] = (Char *)ByteSwap32(argvP[count]);
}
diff --git a/backends/platform/PalmOS/Src/base_event.cpp b/backends/platform/PalmOS/Src/base_event.cpp
index 3ca2722243..6126a248a3 100644
--- a/backends/platform/PalmOS/Src/base_event.cpp
+++ b/backends/platform/PalmOS/Src/base_event.cpp
@@ -92,7 +92,7 @@ bool OSystem_PalmBase::pollEvent(Common::Event &event) {
timer_handler();
sound_handler();
- for(;;) {
+ for (;;) {
// check for hardkey repeat for mouse emulation
keyCurrentState = KeyCurrentState();
diff --git a/backends/platform/PalmOS/Src/base_gfx.cpp b/backends/platform/PalmOS/Src/base_gfx.cpp
index 822663c6ab..cee1329308 100644
--- a/backends/platform/PalmOS/Src/base_gfx.cpp
+++ b/backends/platform/PalmOS/Src/base_gfx.cpp
@@ -95,7 +95,7 @@ void OSystem_PalmBase::initSize(uint w, uint h) {
void OSystem_PalmBase::setPalette(const byte *colors, uint start, uint num) {
RGBColorType *base = _currentPalette + start;
- for(uint i = 0; i < num; i++) {
+ for (uint i = 0; i < num; i++) {
base[i].r = colors[0];
base[i].g = colors[1];
base[i].b = colors[2];
diff --git a/backends/platform/PalmOS/Src/extend.cpp b/backends/platform/PalmOS/Src/extend.cpp
index 3223d86362..99352b8cdb 100644
--- a/backends/platform/PalmOS/Src/extend.cpp
+++ b/backends/platform/PalmOS/Src/extend.cpp
@@ -52,8 +52,8 @@ void DrawStatus(Boolean show) {
if (depth == 8) {
UInt8 *src = (UInt8 *)BmpGetBits(WinGetBitmap(WinGetDisplayWindow()));
src += gVars->screenPitch + 1;
- for(y=0; y < 4; y++) {
- for(x=0; x < 4; x++)
+ for (y=0; y < 4; y++) {
+ for (x=0; x < 4; x++)
src[x] = color;
src += gVars->screenPitch;
@@ -62,8 +62,8 @@ void DrawStatus(Boolean show) {
} else if (depth == 16) {
Int16 *src = (Int16 *)BmpGetBits(WinGetBitmap(WinGetDisplayWindow()));
src += gVars->screenPitch + 1;
- for(y=0; y < 4; y++) {
- for(x=0; x < 4; x++)
+ for (y=0; y < 4; y++) {
+ for (x=0; x < 4; x++)
src[x] = color;
src += gVars->screenPitch;
diff --git a/backends/platform/PalmOS/Src/init_sony.cpp b/backends/platform/PalmOS/Src/init_sony.cpp
index 8840f1a073..915b3ec56f 100644
--- a/backends/platform/PalmOS/Src/init_sony.cpp
+++ b/backends/platform/PalmOS/Src/init_sony.cpp
@@ -46,7 +46,7 @@ UInt16 SilkInit(UInt32 *retVersion) {
if (e) {
// v1 = NR
e = SilkLibOpen(slkRefNum);
- if(!e) version = vskVersionNum1;
+ if (!e) version = vskVersionNum1;
} else {
// v2 = NX/NZ
diff --git a/backends/platform/PalmOS/Src/os5_mouse.cpp b/backends/platform/PalmOS/Src/os5_mouse.cpp
index fa6a14c5a0..3b2c7840e6 100644
--- a/backends/platform/PalmOS/Src/os5_mouse.cpp
+++ b/backends/platform/PalmOS/Src/os5_mouse.cpp
@@ -26,7 +26,7 @@
#include "be_os5.h"
void OSystem_PalmOS5::setCursorPalette(const byte *colors, uint start, uint num) {
- for(uint i = 0; i < num; i++) {
+ for (uint i = 0; i < num; i++) {
_mousePal[i + start] = gfxMakeDisplayRGB(colors[0], colors[1], colors[2]);
colors += 4;
}
diff --git a/backends/platform/PalmOS/Src/snd_pa1.cpp b/backends/platform/PalmOS/Src/snd_pa1.cpp
index ca64825fe6..ddaf6495f6 100644
--- a/backends/platform/PalmOS/Src/snd_pa1.cpp
+++ b/backends/platform/PalmOS/Src/snd_pa1.cpp
@@ -108,6 +108,6 @@ void pcm2adpcm(Int16 *src, UInt8 *dst, UInt32 length) {
*dst++ = (UInt8)data;
- } while(--length);
+ } while (--length);
}