aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/PalmOS/Rsc/StarterRsc.h2
-rw-r--r--backends/platform/PalmOS/Src/cd_aeroplayer.h6
-rw-r--r--backends/platform/PalmOS/Src/cd_default.h18
-rw-r--r--backends/platform/PalmOS/Src/cd_msa.h24
-rw-r--r--backends/platform/PalmOS/Src/cd_pockettunes.h40
-rw-r--r--backends/platform/PalmOS/Src/globals.h2
-rw-r--r--backends/platform/PalmOS/Src/init_palmos.h4
-rw-r--r--backends/platform/PalmOS/Src/init_sony.cpp4
-rw-r--r--backends/platform/PalmOS/Src/init_stuffs.cpp10
-rw-r--r--backends/platform/PalmOS/Src/launcher/app.cpp6
-rw-r--r--backends/platform/PalmOS/Src/launcher/forms/formmain.cpp6
-rw-r--r--backends/platform/PalmOS/Src/launcher/forms/formtabs.h6
-rw-r--r--backends/platform/PalmOS/Src/launcher/games.cpp4
-rw-r--r--backends/platform/PalmOS/Src/launcher/games.h24
-rw-r--r--backends/platform/PalmOS/Src/launcher/skin.cpp2
-rw-r--r--backends/platform/PalmOS/Src/native/pace.h4
-rw-r--r--backends/platform/PalmOS/Src/os5_renderer.cpp4
-rw-r--r--backends/platform/ds/arm7/Makefile2
-rw-r--r--backends/platform/ds/arm7/source/main.cpp16
-rw-r--r--backends/platform/ds/arm9/makefile4
-rwxr-xr-xbackends/platform/ds/arm9/source/adpcm_arm.s6
-rw-r--r--backends/platform/ds/arm9/source/blitters_arm.s8
-rw-r--r--backends/platform/ds/arm9/source/cdaudio.cpp4
-rw-r--r--backends/platform/ds/arm9/source/dsmain.cpp4
-rw-r--r--backends/platform/ds/arm9/source/dsmain.h100
-rw-r--r--backends/platform/ds/arm9/source/fat/gba_nds_fat.c16
-rw-r--r--backends/platform/ds/arm9/source/fat/io_dldi.s2
-rw-r--r--backends/platform/ds/arm9/source/fat/io_njsd.c6
-rw-r--r--backends/platform/ds/arm9/source/fat/io_nmmc.c4
-rw-r--r--backends/platform/ds/arm9/source/fat/io_sd_common.c2
-rw-r--r--backends/platform/ds/arm9/source/touchkeyboard.cpp10
-rw-r--r--backends/platform/ds/arm9/source/zipreader.cpp4
-rw-r--r--backends/platform/gp2x/events.cpp4
-rw-r--r--backends/platform/gp2x/gp2x-common.h2
-rw-r--r--backends/platform/gp2x/graphics.cpp48
-rw-r--r--backends/platform/gp32/Makefile6
-rw-r--r--backends/platform/gp32/debug-gdbstub-usb.cpp8
-rw-r--r--backends/platform/gp32/gp32std_memory.h2
-rw-r--r--backends/platform/iphone/iphone_keyboard.m4
-rw-r--r--backends/platform/iphone/iphone_video.m32
-rw-r--r--backends/platform/iphone/osys_iphone.cpp2
-rw-r--r--backends/platform/ps2/systemps2.cpp2
-rw-r--r--backends/platform/psp/Makefile4
-rw-r--r--backends/platform/psp/README.PSP14
-rw-r--r--backends/platform/psp/osys_psp_gu.cpp8
-rw-r--r--backends/platform/sdl/graphics.cpp48
-rw-r--r--backends/platform/sdl/sdl.h2
-rw-r--r--backends/platform/symbian/BuildPackageUpload_AllVersions.pl2
-rw-r--r--backends/platform/symbian/S60/ScummVM_S60.mmp.in4
-rw-r--r--backends/platform/symbian/S60v3/ScummVM_S60v3.mmp.in6
-rw-r--r--backends/platform/symbian/S80/ScummVM_S80.mmp.in4
-rw-r--r--backends/platform/symbian/S90/Scummvm_S90.mmp.in4
-rw-r--r--backends/platform/symbian/UIQ2/ScummVM_UIQ2.mmp.in4
-rw-r--r--backends/platform/symbian/UIQ3/ScummVM_UIQ3.mmp.in6
-rw-r--r--backends/platform/symbian/mmp/scummvm_base.mmp.in6
-rw-r--r--backends/platform/symbian/mmp/scummvm_scumm.mmp.in2
-rw-r--r--backends/platform/symbian/src/ScummApp.cpp2
-rw-r--r--backends/platform/symbian/src/SymbianOS.cpp4
-rw-r--r--backends/platform/symbian/src/portdefs.h2
-rw-r--r--backends/platform/wince/missing/dirent.h4
-rw-r--r--backends/platform/wince/wince-sdl.cpp8
-rw-r--r--backends/platform/x11/x11.cpp2
62 files changed, 300 insertions, 300 deletions
diff --git a/backends/platform/PalmOS/Rsc/StarterRsc.h b/backends/platform/PalmOS/Rsc/StarterRsc.h
index 5e78736135..fba46b310b 100644
--- a/backends/platform/PalmOS/Rsc/StarterRsc.h
+++ b/backends/platform/PalmOS/Rsc/StarterRsc.h
@@ -10,7 +10,7 @@
// THIS IS AN AUTOMATICALLY GENERATED HEADER FILE
// DO NOT EDIT - CHANGES MADE TO THIS FILE WILL BE LOST
//
-// Palm App Name: "ScummVM"
+// Palm App Name: "ScummVM"
//
// Palm App Version: "1.0"
diff --git a/backends/platform/PalmOS/Src/cd_aeroplayer.h b/backends/platform/PalmOS/Src/cd_aeroplayer.h
index e54bc1d5ff..e661e06d52 100644
--- a/backends/platform/PalmOS/Src/cd_aeroplayer.h
+++ b/backends/platform/PalmOS/Src/cd_aeroplayer.h
@@ -41,7 +41,7 @@ public:
void play(int track, int num_loops, int start_frame, int duration);
void stop();
- void setVolume(int volume);
+ void setVolume(int volume);
private:
OSystem *_sys;
@@ -53,9 +53,9 @@ private:
UInt32 getPosition();
void forceStop();
- UInt16 _volumeLimit;
+ UInt16 _volumeLimit;
- Boolean _isPlaying;
+ Boolean _isPlaying;
// cdrom
UInt16 _pckLoops, _pckTrack;
UInt32 _pckTrackStartFrame, _pckTrackEndFrame;
diff --git a/backends/platform/PalmOS/Src/cd_default.h b/backends/platform/PalmOS/Src/cd_default.h
index 491937f38d..69d909b1e7 100644
--- a/backends/platform/PalmOS/Src/cd_default.h
+++ b/backends/platform/PalmOS/Src/cd_default.h
@@ -30,20 +30,20 @@
class DefaultCDPlayer : public CDAudio {
public:
- DefaultCDPlayer(OSystem *sys);
+ DefaultCDPlayer(OSystem *sys);
- bool init();
- void release();
+ bool init();
+ void release();
- bool poll();
- void update();
- void play(int track, int num_loops, int start_frame, int duration);
- void stop();
+ bool poll();
+ void update();
+ void play(int track, int num_loops, int start_frame, int duration);
+ void stop();
private:
- OSystem *_sys;
+ OSystem *_sys;
- // cdrom
+ // cdrom
UInt16 _defLoops;
UInt32 _defStopTime, _defTrackEndFrame, _defTrackLength;
};
diff --git a/backends/platform/PalmOS/Src/cd_msa.h b/backends/platform/PalmOS/Src/cd_msa.h
index 93ab279c8c..223bc0efcf 100644
--- a/backends/platform/PalmOS/Src/cd_msa.h
+++ b/backends/platform/PalmOS/Src/cd_msa.h
@@ -30,28 +30,28 @@
class MsaCDPlayer : public CDAudio {
public:
- MsaCDPlayer(OSystem *sys);
+ MsaCDPlayer(OSystem *sys);
- bool init();
- void release();
+ bool init();
+ void release();
- bool poll();
- void update();
- void play(int track, int num_loops, int start_frame, int duration);
- void stop();
+ bool poll();
+ void update();
+ void play(int track, int num_loops, int start_frame, int duration);
+ void stop();
- void setVolume(int volume);
+ void setVolume(int volume);
private:
- void initInternal();
+ void initInternal();
- OSystem *_sys;
- UInt16 _msaRefNum;
+ OSystem *_sys;
+ UInt16 _msaRefNum;
UInt32 _volumeLLimit;
UInt32 _volumeRLimit;
- // cdrom
+ // cdrom
AlbumInfoType _msaAlbum;
UInt16 _msaLoops;
diff --git a/backends/platform/PalmOS/Src/cd_pockettunes.h b/backends/platform/PalmOS/Src/cd_pockettunes.h
index 4a8d797158..77938d846a 100644
--- a/backends/platform/PalmOS/Src/cd_pockettunes.h
+++ b/backends/platform/PalmOS/Src/cd_pockettunes.h
@@ -31,35 +31,35 @@
class PckTunesCDPlayer : public CDAudio {
public:
- PckTunesCDPlayer(OSystem *sys);
+ PckTunesCDPlayer(OSystem *sys);
- bool init();
- void release();
+ bool init();
+ void release();
- bool poll();
- void update();
- void play(int track, int num_loops, int start_frame, int duration);
- void stop();
+ bool poll();
+ void update();
+ void play(int track, int num_loops, int start_frame, int duration);
+ void stop();
- void setVolume(int volume);
+ void setVolume(int volume);
private:
- OSystem *_sys;
- Char gameP[15];
+ OSystem *_sys;
+ Char gameP[15];
- PocketTunesAction *_pAction; // prevent memory fragmentation
- EventType _eAction;
+ PocketTunesAction *_pAction; // prevent memory fragmentation
+ EventType _eAction;
- UInt32 getStatus();
- void setPosition(UInt32 value);
- UInt32 getDuration();
- UInt32 getPosition(UInt32 deft);
+ UInt32 getStatus();
+ void setPosition(UInt32 value);
+ UInt32 getDuration();
+ UInt32 getPosition(UInt32 deft);
- UInt32 _volumeLimit;
- UInt32 getVolumeLimit();
+ UInt32 _volumeLimit;
+ UInt32 getVolumeLimit();
- Boolean _isPlaying;
- // cdrom
+ Boolean _isPlaying;
+ // cdrom
UInt16 _pckLoops, _pckTrack;
UInt32 _pckTrackStartFrame, _pckTrackEndFrame;
UInt32 _pckStopTime, _pckTrackDuration;
diff --git a/backends/platform/PalmOS/Src/globals.h b/backends/platform/PalmOS/Src/globals.h
index 05e9fe70b6..796832df82 100644
--- a/backends/platform/PalmOS/Src/globals.h
+++ b/backends/platform/PalmOS/Src/globals.h
@@ -94,7 +94,7 @@ extern GlobalsDataPtr gVars;
#define DO_VARS(z, t, o) \
{ Int8 *tmp = (Int8 *)gVars + o + 8; \
for (Int8 cnt = 0; cnt < gVars->z; cnt++) \
- { UInt##t val = *((UInt##t *)tmp); \
+ { UInt##t val = *((UInt##t *)tmp); \
val = ByteSwap##t(val); \
*((UInt##t *)tmp) = val; \
tmp += (t / 8); \
diff --git a/backends/platform/PalmOS/Src/init_palmos.h b/backends/platform/PalmOS/Src/init_palmos.h
index 34b8ca1451..d4691dd15b 100644
--- a/backends/platform/PalmOS/Src/init_palmos.h
+++ b/backends/platform/PalmOS/Src/init_palmos.h
@@ -26,7 +26,7 @@
#ifndef INIT_PALMOS_H
#define INIT_PALMOS_H
-#define PALM_PORTRAIT 1
+#define PALM_PORTRAIT 1
#define PALM_LANDSCAPE 2
void PalmInit(UInt8 init);
@@ -39,4 +39,4 @@ void PalmHRRelease();
UInt8 PalmScreenSize(Coord *stdw, Coord *stdh, Coord *fullw, Coord *fullh);
void PalmGetMemory(UInt32* storageMemoryP, UInt32* dynamicMemoryP, UInt32 *storageFreeP, UInt32 *dynamicFreeP);
-#endif \ No newline at end of file
+#endif
diff --git a/backends/platform/PalmOS/Src/init_sony.cpp b/backends/platform/PalmOS/Src/init_sony.cpp
index ede7ae997a..f6728d08b3 100644
--- a/backends/platform/PalmOS/Src/init_sony.cpp
+++ b/backends/platform/PalmOS/Src/init_sony.cpp
@@ -45,13 +45,13 @@ UInt16 SilkInit(UInt32 *retVersion) {
e = FtrGet(sonySysFtrCreator, sonySysFtrNumVskVersion, &version);
if (e) {
// v1 = NR
- e = SilkLibOpen(slkRefNum);
+ e = SilkLibOpen(slkRefNum);
if (!e) version = vskVersionNum1;
} else {
// v2 = NX/NZ
// v3 = UX...
- e = VskOpen(slkRefNum);
+ e = VskOpen(slkRefNum);
}
}
} else
diff --git a/backends/platform/PalmOS/Src/init_stuffs.cpp b/backends/platform/PalmOS/Src/init_stuffs.cpp
index 753d2ae548..51bfe755eb 100644
--- a/backends/platform/PalmOS/Src/init_stuffs.cpp
+++ b/backends/platform/PalmOS/Src/init_stuffs.cpp
@@ -80,11 +80,11 @@ void StuffsGetFeatures() {
OPTIONS_SET(kOptDeviceOS5);
// ARM ?
- if (!FtrGet(sysFileCSystem, sysFtrNumProcessorID, &ulProcessorType))
- if (sysFtrNumProcessorIsARM(ulProcessorType))
- OPTIONS_SET(kOptDeviceARM);
- else if (ulProcessorType == sysFtrNumProcessorx86)
- OPTIONS_SET(kOptDeviceProcX86);
+ if (!FtrGet(sysFileCSystem, sysFtrNumProcessorID, &ulProcessorType))
+ if (sysFtrNumProcessorIsARM(ulProcessorType))
+ OPTIONS_SET(kOptDeviceARM);
+ else if (ulProcessorType == sysFtrNumProcessorx86)
+ OPTIONS_SET(kOptDeviceProcX86);
// 5Way Navigator
if (!FtrGet(hsFtrCreator, hsFtrIDNavigationSupported, &version)) {
diff --git a/backends/platform/PalmOS/Src/launcher/app.cpp b/backends/platform/PalmOS/Src/launcher/app.cpp
index 31c94da5b6..9bb1c1479b 100644
--- a/backends/platform/PalmOS/Src/launcher/app.cpp
+++ b/backends/platform/PalmOS/Src/launcher/app.cpp
@@ -202,7 +202,7 @@ static void AppStartCheckScreenSize() {
#define max(id,value) gVars->memory[id] = (gVars->memory[id] < value ? value : gVars->memory[id])
#define min(id,value) gVars->memory[id] = (gVars->memory[id] > value ? value : gVars->memory[id])
-#define threshold 700
+#define threshold 700
static void AppStartSetMemory() {
UInt32 mem, def;
@@ -221,7 +221,7 @@ Err AppStart(void) {
#ifndef _DEBUG_ENGINE
// delete old databases
- ModDelete();
+ ModDelete();
#endif
// allocate global variables space
@@ -295,7 +295,7 @@ Err AppStart(void) {
GamImportDatabase();
AppStartCheckScreenSize();
- AppStartCheckNotify(); // not fatal error if not avalaible
+ AppStartCheckNotify(); // not fatal error if not avalaible
return error;
}
diff --git a/backends/platform/PalmOS/Src/launcher/forms/formmain.cpp b/backends/platform/PalmOS/Src/launcher/forms/formmain.cpp
index 9970e608c9..ca2e18ee6d 100644
--- a/backends/platform/PalmOS/Src/launcher/forms/formmain.cpp
+++ b/backends/platform/PalmOS/Src/launcher/forms/formmain.cpp
@@ -121,8 +121,8 @@ static Boolean MainFormDoCommand(UInt16 command)
break;
case MainOptionsAbout:
- FrmPopupForm(InfoForm);
- handled = true;
+ FrmPopupForm(InfoForm);
+ handled = true;
break;
case MainGamesMusicSound:
@@ -252,7 +252,7 @@ Boolean MainFormHandleEvent(EventPtr eventP)
break;
case MainAboutButton:
- FrmPopupForm(InfoForm);
+ FrmPopupForm(InfoForm);
break;
// case MainListTypeSelTrigger:
diff --git a/backends/platform/PalmOS/Src/launcher/forms/formtabs.h b/backends/platform/PalmOS/Src/launcher/forms/formtabs.h
index 5371485bf1..f14c2ff4e4 100644
--- a/backends/platform/PalmOS/Src/launcher/forms/formtabs.h
+++ b/backends/platform/PalmOS/Src/launcher/forms/formtabs.h
@@ -17,8 +17,8 @@ typedef struct {
} TabType, *TabPtr;
TabType *TabNewTabs (UInt16 cnt);
-void TabDeleteTabs (TabType *tabP);
-Err TabAddContent (FormType **frmP, TabType *tabP, const Char *nameP, UInt16 rscID, TabProc *drawFunc = 0);
-void TabSetActive (FormType *frmP, TabType *tabP, UInt16 num);
+void TabDeleteTabs (TabType *tabP);
+Err TabAddContent (FormType **frmP, TabType *tabP, const Char *nameP, UInt16 rscID, TabProc *drawFunc = 0);
+void TabSetActive (FormType *frmP, TabType *tabP, UInt16 num);
void TabMoveUpObject (FormType *frmP, UInt16 objID, Coord amount);
#endif
diff --git a/backends/platform/PalmOS/Src/launcher/games.cpp b/backends/platform/PalmOS/Src/launcher/games.cpp
index b223897fd5..c3f7ef3e4a 100644
--- a/backends/platform/PalmOS/Src/launcher/games.cpp
+++ b/backends/platform/PalmOS/Src/launcher/games.cpp
@@ -414,8 +414,8 @@ void GamImportDatabase() {
return;
}
- // get current db info and rename it
- DmOpenDatabaseInfo(gameDB, &oDbID, 0, 0, &oCardNo, 0);
+ // get current db info and rename it
+ DmOpenDatabaseInfo(gameDB, &oDbID, 0, 0, &oCardNo, 0);
GamCloseDatabase(true);
e = DmDeleteDatabase(oCardNo, oDbID);
diff --git a/backends/platform/PalmOS/Src/launcher/games.h b/backends/platform/PalmOS/Src/launcher/games.h
index 4b53503d60..0572504dc8 100644
--- a/backends/platform/PalmOS/Src/launcher/games.h
+++ b/backends/platform/PalmOS/Src/launcher/games.h
@@ -53,9 +53,9 @@ typedef struct {
UInt16 icnID; // icon to display on the list
Boolean selected;
- Char nameP[50]; // game name to display in list
- Char pathP[150]; // path to the game files
- Char gameP[10]; // scumm name of the game
+ Char nameP[50]; // game name to display in list
+ Char pathP[150]; // path to the game files
+ Char gameP[10]; // scumm name of the game
UInt16 gfxMode;
Boolean autoLoad;
@@ -75,9 +75,9 @@ typedef struct {
UInt16 icnID; // icon to display on the list
Boolean selected;
- Char nameP[50]; // game name to display in list
- Char pathP[150]; // path to the game files
- Char gameP[10]; // scumm name of the game
+ Char nameP[50]; // game name to display in list
+ Char pathP[150]; // path to the game files
+ Char gameP[10]; // scumm name of the game
UInt16 gfxMode;
Boolean autoLoad;
@@ -127,9 +127,9 @@ typedef struct {
UInt16 icnID; // icon to display on the list
Boolean selected;
- Char nameP[50]; // game name to display in list
- Char pathP[150]; // path to the game files
- Char gameP[15]; // scumm name of the game
+ Char nameP[50]; // game name to display in list
+ Char pathP[150]; // path to the game files
+ Char gameP[15]; // scumm name of the game
UInt16 gfxMode;
Boolean autoLoad;
@@ -142,13 +142,13 @@ typedef struct {
UInt16 bootValue;
UInt16 talkValue;
UInt8 platform;
- UInt8 language; // |- v2.5
+ UInt8 language; // |- v2.5
- Boolean filter; // v2.6
+ Boolean filter; // v2.6
Boolean fullscreen; // |
Boolean aspectRatio; // |- v2.7
- MusicInfoType musicInfo;// v3.0
+ MusicInfoType musicInfo;// v3.0
UInt8 engine; // |- v3.1
UInt8 renderMode; // |- v3.2
diff --git a/backends/platform/PalmOS/Src/launcher/skin.cpp b/backends/platform/PalmOS/Src/launcher/skin.cpp
index 3e8b0f0b96..4c3f722aa1 100644
--- a/backends/platform/PalmOS/Src/launcher/skin.cpp
+++ b/backends/platform/PalmOS/Src/launcher/skin.cpp
@@ -134,7 +134,7 @@ static void SknCopyBits(DmOpenRef skinDBP, DmResID bitmapID, const RectangleType
WinDrawBitmap(bmpTemp, 0, 0);
WinSetDrawWindow(old);
- bmp2P = BmpCreateBitmapV3(WinGetBitmap(win), kDensityDouble, BmpGetBits(WinGetBitmap(win)), NULL);
+ bmp2P = BmpCreateBitmapV3(WinGetBitmap(win), kDensityDouble, BmpGetBits(WinGetBitmap(win)), NULL);
copy.topLeft.x = destX / 2;
copy.topLeft.y = destY / 2;
diff --git a/backends/platform/PalmOS/Src/native/pace.h b/backends/platform/PalmOS/Src/native/pace.h
index b3e2d14593..37b903b2c3 100644
--- a/backends/platform/PalmOS/Src/native/pace.h
+++ b/backends/platform/PalmOS/Src/native/pace.h
@@ -89,14 +89,14 @@ extern GlobalsType global;
PACE_EMULSTATE->regData[2] = pinTrap; \
return ((returnType)((PACE_CALLBACK_PTR)( \
static_cast<void *>(PACE_EMULSTATE), \
- PceNativeTrapNo(sysTrapPinsDispatch), \
+ PceNativeTrapNo(sysTrapPinsDispatch), \
NULL, 0)));
#define PACE_PIN_EXEC(pinTrap, returnType) \
PACE_EMULSTATE->regData[2] = pinTrap; \
return ((returnType)((PACE_CALLBACK_PTR)( \
static_cast<void *>(PACE_EMULSTATE), \
- PceNativeTrapNo(sysTrapPinsDispatch), \
+ PceNativeTrapNo(sysTrapPinsDispatch), \
&params, \
sizeof(params))));
diff --git a/backends/platform/PalmOS/Src/os5_renderer.cpp b/backends/platform/PalmOS/Src/os5_renderer.cpp
index 4580db4d53..2c1c122a7d 100644
--- a/backends/platform/PalmOS/Src/os5_renderer.cpp
+++ b/backends/platform/PalmOS/Src/os5_renderer.cpp
@@ -79,10 +79,10 @@ void OSystem_PalmOS5::render_landscapeAny(RectangleType &r, PointType &p) {
void OSystem_PalmOS5::render_landscape15x(RectangleType &r, PointType &p) {
Coord x, y, o = 0;
- int16 *dst = _workScreenP;
+ int16 *dst = _workScreenP;
if (_overlayVisible) {
- int16 *src = _overlayP;
+ int16 *src = _overlayP;
for (y = 0; y < 100; y++) {
// draw 2 lines
diff --git a/backends/platform/ds/arm7/Makefile b/backends/platform/ds/arm7/Makefile
index 9bb8e68b78..e6a190b1ce 100644
--- a/backends/platform/ds/arm7/Makefile
+++ b/backends/platform/ds/arm7/Makefile
@@ -25,7 +25,7 @@ ARCH := -mthumb-interwork
# note: arm9tdmi isn't the correct CPU arch, but anything newer and LD
# *insists* it has a FPU or VFP, and it won't take no for an answer!
CFLAGS := -g -Wall -O2\
- -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer\
+ -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer\
-ffast-math \
$(ARCH)
diff --git a/backends/platform/ds/arm7/source/main.cpp b/backends/platform/ds/arm7/source/main.cpp
index dc2ff42fcb..0e31204ef7 100644
--- a/backends/platform/ds/arm7/source/main.cpp
+++ b/backends/platform/ds/arm7/source/main.cpp
@@ -547,17 +547,17 @@ void initDebugger() {
while (REG_IPC_FIFO_CR&IPC_FIFO_RECV_EMPTY) swiWaitForVBlank();
fifo_temp=REG_IPC_FIFO_RX;
if (fifo_temp==0x12345678) break;
- }
+ }
- while (REG_IPC_FIFO_CR&IPC_FIFO_RECV_EMPTY) swiWaitForVBlank();
- fifo_temp=REG_IPC_FIFO_RX; // give next value to wifi_init
- Wifi_Init(fifo_temp);
+ while (REG_IPC_FIFO_CR&IPC_FIFO_RECV_EMPTY) swiWaitForVBlank();
+ fifo_temp=REG_IPC_FIFO_RX; // give next value to wifi_init
+ Wifi_Init(fifo_temp);
- irqSet(IRQ_FIFO_NOT_EMPTY,arm7_fifo); // set up fifo irq
- irqEnable(IRQ_FIFO_NOT_EMPTY);
- REG_IPC_FIFO_CR = IPC_FIFO_ENABLE | IPC_FIFO_RECV_IRQ;
+ irqSet(IRQ_FIFO_NOT_EMPTY,arm7_fifo); // set up fifo irq
+ irqEnable(IRQ_FIFO_NOT_EMPTY);
+ REG_IPC_FIFO_CR = IPC_FIFO_ENABLE | IPC_FIFO_RECV_IRQ;
- Wifi_SetSyncHandler(arm7_synctoarm9); // allow wifi lib to notify arm9
+ Wifi_SetSyncHandler(arm7_synctoarm9); // allow wifi lib to notify arm9
// arm7 wifi init complete
}
diff --git a/backends/platform/ds/arm9/makefile b/backends/platform/ds/arm9/makefile
index bc3d532e8d..116d75b191 100644
--- a/backends/platform/ds/arm9/makefile
+++ b/backends/platform/ds/arm9/makefile
@@ -268,14 +268,14 @@ endif
ARM7BIN := -7 $(CURDIR)/../../arm7/arm7.bin
-ICON := -b ../../../logo.bmp "ScummVM;By Neil Millstone;"
+ICON := -b ../../../logo.bmp "ScummVM;By Neil Millstone;"
CC = arm-eabi-gcc
CXX = arm-eabi-g++
CFLAGS = -Wno-multichar -Wall\
-Wno-multichar -mcpu=arm9tdmi -mtune=arm9tdmi \
- -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer\
+ -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer\
-ffast-math -mthumb-interwork
ifdef USE_DEBUGGER
diff --git a/backends/platform/ds/arm9/source/adpcm_arm.s b/backends/platform/ds/arm9/source/adpcm_arm.s
index 38e8e60c6d..178a63bb8c 100755
--- a/backends/platform/ds/arm9/source/adpcm_arm.s
+++ b/backends/platform/ds/arm9/source/adpcm_arm.s
@@ -55,14 +55,14 @@ ARM_adpcm
loop:
LDRH r10,[r11,r2] @ r10 = stepTab[stepTableIndex]
TST r12,#4 @ if ((offset & 4) == 0)
- MOVEQ r9, #0 @ r9 = diff = 0
+ MOVEQ r9, #0 @ r9 = diff = 0
MOVNE r9, r10 @ else r9 = diff = stepTab[stepTableIndex]
TST r12,#2 @ if (offset & 2)
- ADDNE r9, r9, r10,ASR #1 @ diff += r10>>1
+ ADDNE r9, r9, r10,ASR #1 @ diff += r10>>1
TST r12,#1 @ if (offset & 1)
- ADDNE r9, r9, r10,ASR #2 @ diff += r10>>2
+ ADDNE r9, r9, r10,ASR #2 @ diff += r10>>2
ADD r9, r9, r10,ASR #3 @ diff += r10>>3
diff --git a/backends/platform/ds/arm9/source/blitters_arm.s b/backends/platform/ds/arm9/source/blitters_arm.s
index 93d5db7ea9..fa7613929b 100644
--- a/backends/platform/ds/arm9/source/blitters_arm.s
+++ b/backends/platform/ds/arm9/source/blitters_arm.s
@@ -292,7 +292,7 @@ xLoop4:
ADD r6, r6, r6, LSL #1 @ r6 = 3*pal[src0]
AND r9, r14,r10,LSR #16 @ r9 = src2
LDR r9, [r13,r9, LSL #2] @ r9 = pal[src2]
- MOV r10,r10,LSR #24 @ r10= src3
+ MOV r10,r10,LSR #24 @ r10= src3
LDR r10,[r13,r10,LSL #2] @ r10= pal[src3]
ADD r6, r6, r7 @ r6 = dst0<<2
AND r6, r8, r6, LSR #2 @ r6 = dst0 (split)
@@ -322,7 +322,7 @@ xLoop4:
ADD r6, r6, r6, LSL #1 @ r6 = 3*pal[src5]
MOV r9, r11,LSR #24 @ r9 = src7
LDR r9, [r13,r9, LSL #2] @ r9 = pal[src7]
- AND r10,r14,r12 @ r10= src8
+ AND r10,r14,r12 @ r10= src8
LDR r10,[r13,r10,LSL #2] @ r10= pal[src8]
ADD r6, r6, r7 @ r6 = dst4<<2
AND r6, r8, r6, LSR #2 @ r6 = dst4 (split)
@@ -354,7 +354,7 @@ xLoop4:
ADD r6, r6, r6, LSL #1 @ r6 = 3*pal[src10]
AND r9, r14,r10 @ r9 = src12
LDR r9, [r13,r9, LSL #2] @ r9 = pal[src12]
- AND r12,r14,r10,LSR #8 @ r11= src13
+ AND r12,r14,r10,LSR #8 @ r11= src13
LDR r12,[r13,r12,LSL #2] @ r11= pal[src13]
ADD r6, r6, r7 @ r6 = dst8<<2
AND r6, r8, r6, LSR #2 @ r6 = dst8 (split)
@@ -384,7 +384,7 @@ xLoop4:
ADD r6, r6, r6, LSL #1 @ r6 = 3*pal[src15]
AND r9, r14,r11,LSR #8 @ r9 = src17
LDR r9, [r13,r9, LSL #2] @ r9 = pal[src17]
- AND r12,r14,r11,LSR #16 @ r11= src18
+ AND r12,r14,r11,LSR #16 @ r11= src18
LDR r12,[r13,r12,LSL #2] @ r11= pal[src18]
ADD r6, r6, r7 @ r6 = dst12<<2
AND r6, r8, r6, LSR #2 @ r6 = dst12 (split)
diff --git a/backends/platform/ds/arm9/source/cdaudio.cpp b/backends/platform/ds/arm9/source/cdaudio.cpp
index 2897a9364b..e8c9f55ef1 100644
--- a/backends/platform/ds/arm9/source/cdaudio.cpp
+++ b/backends/platform/ds/arm9/source/cdaudio.cpp
@@ -55,12 +55,12 @@ struct WaveHeader {
} __attribute__ ((packed));
struct chunkHeader {
- char name[4];
+ char name[4];
u32 size;
} __attribute__ ((packed));
struct Header {
- s16 firstSample;
+ s16 firstSample;
char stepTableIndex;
char reserved;
} __attribute__ ((packed));
diff --git a/backends/platform/ds/arm9/source/dsmain.cpp b/backends/platform/ds/arm9/source/dsmain.cpp
index 45b76fe0f1..0aed095244 100644
--- a/backends/platform/ds/arm9/source/dsmain.cpp
+++ b/backends/platform/ds/arm9/source/dsmain.cpp
@@ -220,7 +220,7 @@ int hBlankCount = 0;
gameListType gameList[NUM_SUPPORTED_GAMES] = {
// Unknown game - use normal SCUMM controls
- {"unknown", CONT_SCUMM_ORIGINAL},
+ {"unknown", CONT_SCUMM_ORIGINAL},
// SCUMM games
{"maniac", CONT_SCUMM_ORIGINAL},
@@ -1810,7 +1810,7 @@ void VBlankHandler(void) {
if (zooming) {
subScX = subScTargetX;
subScY = subScTargetY;
- triggerIcon(5);
+ triggerIcon(5);
}
} else if ( ((subScreenWidth) > 128 - 8) && ((subScreenWidth) < 128 + 8) ) {
subScreenWidth = 128;
diff --git a/backends/platform/ds/arm9/source/dsmain.h b/backends/platform/ds/arm9/source/dsmain.h
index 04be57f2eb..85212a2d01 100644
--- a/backends/platform/ds/arm9/source/dsmain.h
+++ b/backends/platform/ds/arm9/source/dsmain.h
@@ -42,98 +42,98 @@ enum controlType {
};
struct gameListType {
- char gameId[16];
- controlType control;
+ char gameId[16];
+ controlType control;
};
// Pen reading functions
-void penInit();
-void penUpdate();
-bool getPenDown();
-bool getPenHeld();
-bool getPenReleased();
-int getPenX();
-int getPenY();
+void penInit();
+void penUpdate();
+bool getPenDown();
+bool getPenHeld();
+bool getPenReleased();
+int getPenX();
+int getPenY();
GLvector getPenPos();
-void consumePenEvents();
+void consumePenEvents();
// Pad reading
-int getKeysHeld();
-void keysUpdate();
-int getKeysDown();
-int getKeysReleased();
-void consumeKeys();
-int leftHandedSwap(int keys);
+int getKeysHeld();
+void keysUpdate();
+int getKeysDown();
+int getKeysReleased();
+void consumeKeys();
+int leftHandedSwap(int keys);
// Video
-void displayMode8Bit(); // Switch to 8-bit mode5
-void displayMode16Bit(); // Switch to 16-bit mode5
+void displayMode8Bit(); // Switch to 8-bit mode5
+void displayMode16Bit(); // Switch to 16-bit mode5
// Flip double buffer
-void displayMode16BitFlipBuffer();
+void displayMode16BitFlipBuffer();
// Get address of current back buffer
-u16* get16BitBackBuffer();
-u16* get8BitBackBuffer();
+u16* get16BitBackBuffer();
+u16* get8BitBackBuffer();
-void setTalkPos(int x, int y);
-void setTopScreenTarget(int x, int y);
+void setTalkPos(int x, int y);
+void setTopScreenTarget(int x, int y);
void set200PercentFixedScale(bool on);
// Timers
-void setTimerCallback(OSystem_DS::TimerProc proc, int interval); // Setup a callback function at a regular interval
-int getMillis(); // Return the current runtime in milliseconds
-void doTimerCallback(); // Call callback function if required
+void setTimerCallback(OSystem_DS::TimerProc proc, int interval); // Setup a callback function at a regular interval
+int getMillis(); // Return the current runtime in milliseconds
+void doTimerCallback(); // Call callback function if required
// Sound
-void setSoundProc(OSystem_DS::SoundProc proc, void* param); // Setup a callback function for sound
-void doSoundCallback(); // Call function if sound buffers need more data
-void playSound(const void* data, u32 length, bool loop, bool adpcm = false, int rate = 22050); // Start a sound
-void stopSound(int channel);
+void setSoundProc(OSystem_DS::SoundProc proc, void* param); // Setup a callback function for sound
+void doSoundCallback(); // Call function if sound buffers need more data
+void playSound(const void* data, u32 length, bool loop, bool adpcm = false, int rate = 22050); // Start a sound
+void stopSound(int channel);
int getSoundFrequency();
// Event queue
-void addEventsToQueue();
-void VBlankHandler();
+void addEventsToQueue();
+void VBlankHandler();
// Sam and Max Stuff
-void setGameID(int id);
-void setCursorIcon(const u8* icon, uint w, uint h, byte keycolor, int hotspotX, int hotspotY);
+void setGameID(int id);
+void setCursorIcon(const u8* icon, uint w, uint h, byte keycolor, int hotspotX, int hotspotY);
void setShowCursor(bool enable);
void setMouseCursorVisible(bool visible);
// Shake
-void setShakePos(int shakePos);
+void setShakePos(int shakePos);
// Reports
-void memoryReport();
+void memoryReport();
// GBAMP
-bool isGBAMPAvailable();
+bool isGBAMPAvailable();
// Sleep (I'd like some of that right now)
-void checkSleepMode();
+void checkSleepMode();
// Virtual keyboard
-void setKeyboardIcon(bool enable);
-bool getKeyboardIcon();
-void setKeyboardEnable(bool en);
-bool getKeyboardEnable();
+void setKeyboardIcon(bool enable);
+bool getKeyboardIcon();
+void setKeyboardEnable(bool en);
+bool getKeyboardEnable();
// Options
-void setLeftHanded(bool enable);
-void setTouchXOffset(int x);
-void setTouchYOffset(int y);
-void setUnscaledMode(bool enable);
+void setLeftHanded(bool enable);
+void setTouchXOffset(int x);
+void setTouchYOffset(int y);
+void setUnscaledMode(bool enable);
void setSnapToBorder(bool enable);
-void setIndyFightState(bool st);
-bool getIndyFightState();
+void setIndyFightState(bool st);
+bool getIndyFightState();
bool isCpuScalerEnabled();
void setCpuScalerEnable(bool enable);
// Display
-bool getIsDisplayMode8Bit();
-void setGameSize(int width, int height);
+bool getIsDisplayMode8Bit();
+void setGameSize(int width, int height);
int getGameWidth();
int getGameHeight();
diff --git a/backends/platform/ds/arm9/source/fat/gba_nds_fat.c b/backends/platform/ds/arm9/source/fat/gba_nds_fat.c
index 9594066f03..fffd8ab88b 100644
--- a/backends/platform/ds/arm9/source/fat/gba_nds_fat.c
+++ b/backends/platform/ds/arm9/source/fat/gba_nds_fat.c
@@ -362,7 +362,7 @@ u32 FAT_NextCluster(u32 cluster)
if (cluster & 0x01) {
nextCluster = nextCluster >> 4;
- } else {
+ } else {
nextCluster &= 0x0FFF;
}
@@ -1231,7 +1231,7 @@ bool FAT_GetAlias (char* alias)
// Read in the last accessed directory entry
disc_ReadSector ((wrkDirCluster == FAT16_ROOT_DIR_CLUSTER ? filesysRootDir : FAT_ClustToSect(wrkDirCluster)) + wrkDirSector, globalBuffer);
- return FAT_GetFilename (((DIR_ENT*)globalBuffer)[wrkDirOffset], alias);
+ return FAT_GetFilename (((DIR_ENT*)globalBuffer)[wrkDirOffset], alias);
}
/*-----------------------------------------------------------------
@@ -1245,7 +1245,7 @@ u32 FAT_GetFileSize (void)
// Read in the last accessed directory entry
disc_ReadSector ((wrkDirCluster == FAT16_ROOT_DIR_CLUSTER ? filesysRootDir : FAT_ClustToSect(wrkDirCluster)) + wrkDirSector, globalBuffer);
- return ((DIR_ENT*)globalBuffer)[wrkDirOffset].fileSize;
+ return ((DIR_ENT*)globalBuffer)[wrkDirOffset].fileSize;
}
/*-----------------------------------------------------------------
@@ -1258,7 +1258,7 @@ u32 FAT_GetFileCluster (void)
// Read in the last accessed directory entry
disc_ReadSector ((wrkDirCluster == FAT16_ROOT_DIR_CLUSTER ? filesysRootDir : FAT_ClustToSect(wrkDirCluster)) + wrkDirSector, globalBuffer);
- return (((DIR_ENT*)globalBuffer)[wrkDirOffset].startCluster) | (((DIR_ENT*)globalBuffer)[wrkDirOffset].startClusterHigh << 16);
+ return (((DIR_ENT*)globalBuffer)[wrkDirOffset].startCluster) | (((DIR_ENT*)globalBuffer)[wrkDirOffset].startClusterHigh << 16);
}
/*-----------------------------------------------------------------
@@ -1271,7 +1271,7 @@ u8 FAT_GetFileAttributes (void)
// Read in the last accessed directory entry
disc_ReadSector ((wrkDirCluster == FAT16_ROOT_DIR_CLUSTER ? filesysRootDir : FAT_ClustToSect(wrkDirCluster)) + wrkDirSector, globalBuffer);
- return ((DIR_ENT*)globalBuffer)[wrkDirOffset].attrib;
+ return ((DIR_ENT*)globalBuffer)[wrkDirOffset].attrib;
}
#ifdef CAN_WRITE_TO_DISC
@@ -1297,7 +1297,7 @@ u8 FAT_SetFileAttributes (const char* filename, u8 attributes, u8 mask)
disc_WriteSector ((wrkDirCluster == FAT16_ROOT_DIR_CLUSTER ? filesysRootDir : FAT_ClustToSect(wrkDirCluster)) + wrkDirSector, globalBuffer);
- return ((DIR_ENT*)globalBuffer)[wrkDirOffset].attrib;
+ return ((DIR_ENT*)globalBuffer)[wrkDirOffset].attrib;
}
#endif
@@ -1327,7 +1327,7 @@ time_t FAT_GetFileCreationTime (void)
// Read in the last accessed directory entry
disc_ReadSector ((wrkDirCluster == FAT16_ROOT_DIR_CLUSTER ? filesysRootDir : FAT_ClustToSect(wrkDirCluster)) + wrkDirSector, globalBuffer);
- return FAT_FileTimeToCTime(((DIR_ENT*)globalBuffer)[wrkDirOffset].cTime, ((DIR_ENT*)globalBuffer)[wrkDirOffset].cDate);
+ return FAT_FileTimeToCTime(((DIR_ENT*)globalBuffer)[wrkDirOffset].cTime, ((DIR_ENT*)globalBuffer)[wrkDirOffset].cDate);
}
/*-----------------------------------------------------------------
@@ -1340,7 +1340,7 @@ time_t FAT_GetFileLastWriteTime (void)
// Read in the last accessed directory entry
disc_ReadSector ((wrkDirCluster == FAT16_ROOT_DIR_CLUSTER ? filesysRootDir : FAT_ClustToSect(wrkDirCluster)) + wrkDirSector, globalBuffer);
- return FAT_FileTimeToCTime(((DIR_ENT*)globalBuffer)[wrkDirOffset].mTime, ((DIR_ENT*)globalBuffer)[wrkDirOffset].mDate);
+ return FAT_FileTimeToCTime(((DIR_ENT*)globalBuffer)[wrkDirOffset].mTime, ((DIR_ENT*)globalBuffer)[wrkDirOffset].mDate);
}
#endif
diff --git a/backends/platform/ds/arm9/source/fat/io_dldi.s b/backends/platform/ds/arm9/source/fat/io_dldi.s
index 311d43f3ff..657e475086 100644
--- a/backends/platform/ds/arm9/source/fat/io_dldi.s
+++ b/backends/platform/ds/arm9/source/fat/io_dldi.s
@@ -17,7 +17,7 @@
.byte 0x01 @ Version number
.byte 0x0F @32KiB @ Log [base-2] of the size of this driver in bytes.
.byte 0x00 @ Sections to fix
- .byte 0x0F @32KiB @ Log [base-2] of the allocated space in bytes.
+ .byte 0x0F @32KiB @ Log [base-2] of the allocated space in bytes.
@---------------------------------------------------------------------------------
@ Text identifier - can be anything up to 47 chars + terminating null -- 16 bytes
diff --git a/backends/platform/ds/arm9/source/fat/io_njsd.c b/backends/platform/ds/arm9/source/fat/io_njsd.c
index 12388da8e9..d8a0ff69ac 100644
--- a/backends/platform/ds/arm9/source/fat/io_njsd.c
+++ b/backends/platform/ds/arm9/source/fat/io_njsd.c
@@ -445,7 +445,7 @@ static bool _NJSD_cardInit (void) {
_NJSD_sendCLK (SD_CLK_200KHz, 8);
_NJSD_sendCLK (SD_CLK_200KHz, 256);
- _NJSD_sendCMDN (SD_CLK_200KHz, GO_IDLE_STATE, 0);
+ _NJSD_sendCMDN (SD_CLK_200KHz, GO_IDLE_STATE, 0);
_NJSD_sendCLK (SD_CLK_200KHz, 8);
for (i = 0; i < MAX_STARTUP_TRIES ; i++) {
@@ -473,7 +473,7 @@ static bool _NJSD_cardInit (void) {
break;
}
}
- if (i >= MAX_STARTUP_TRIES) {
+ if (i >= MAX_STARTUP_TRIES) {
return false;
}
@@ -525,7 +525,7 @@ bool _NJSD_startup(void) {
bool _NJSD_writeSectors (u32 sector, u32 numSectors, const void* buffer) {
- u8 crc[8];
+ u8 crc[8];
u32 offset = sector * BYTES_PER_READ;
u8* data = (u8*) buffer;
diff --git a/backends/platform/ds/arm9/source/fat/io_nmmc.c b/backends/platform/ds/arm9/source/fat/io_nmmc.c
index 261096a27b..e9331ae58e 100644
--- a/backends/platform/ds/arm9/source/fat/io_nmmc.c
+++ b/backends/platform/ds/arm9/source/fat/io_nmmc.c
@@ -73,7 +73,7 @@ static inline void Neo_MK2GameMode() {
static inline void Neo_EnableEEPROM( bool enable ) {
Neo_OpenSPI(spi_freq);
if(enable) Neo_SPI(0x06);
- else Neo_SPI(0x0E);
+ else Neo_SPI(0x0E);
Neo_CloseSPI();
}
@@ -294,7 +294,7 @@ bool NMMC_WriteSectors (u32 sector, u8 numSecs, void* buffer)
Neo_SPI( 0xFF ); // Send fake CRC16
Neo_SPI( 0xFF ); // Send fake CRC16
- Neo_SPI (0xFF); // Send 8 clocks
+ Neo_SPI (0xFF); // Send 8 clocks
while( Neo_SPI( 0xFF ) == 0x00 ); // Wait for the busy signal to clear
diff --git a/backends/platform/ds/arm9/source/fat/io_sd_common.c b/backends/platform/ds/arm9/source/fat/io_sd_common.c
index ade9df0d80..36d4a3bfc8 100644
--- a/backends/platform/ds/arm9/source/fat/io_sd_common.c
+++ b/backends/platform/ds/arm9/source/fat/io_sd_common.c
@@ -169,7 +169,7 @@ bool _SD_InitCard (_SD_FN_CMD_6BYTE_RESPONSE cmd_6byte_response,
break;
}
}
- if (i >= MAX_STARTUP_TRIES) {
+ if (i >= MAX_STARTUP_TRIES) {
return false;
}
diff --git a/backends/platform/ds/arm9/source/touchkeyboard.cpp b/backends/platform/ds/arm9/source/touchkeyboard.cpp
index 5927f204da..5ff162cc4f 100644
--- a/backends/platform/ds/arm9/source/touchkeyboard.cpp
+++ b/backends/platform/ds/arm9/source/touchkeyboard.cpp
@@ -194,7 +194,7 @@ void drawKeyboard(int tileBase, int mapBase, u16* saveSpace) {
for (int y = 0 ; y < 8; y++) {
for (int x = 0; x < 2; x++) {
*(tileAddr + (y * 2) + x) =(*(src + (y * 752) + (x * 4) + 0) & 0x0F)
- | ((*(src + (y * 752) + (x * 4) + 1) & 0x0F) << 4)
+ | ((*(src + (y * 752) + (x * 4) + 1) & 0x0F) << 4)
| ((*(src + (y * 752) + (x * 4) + 2) & 0x0F) << 8)
| ((*(src + (y * 752) + (x * 4) + 3) & 0x0F) << 12);
@@ -317,7 +317,7 @@ void clearAutoComplete() {
void typeCompletion(int current) {
Common::Event event;
- OSystem_DS* system = OSystem_DS::instance();
+ OSystem_DS* system = OSystem_DS::instance();
strcat(autoCompleteBuffer, &autoCompleteWord[current][charactersEntered]);
strcat(autoCompleteBuffer, " ");
@@ -350,7 +350,7 @@ void updateTypeEvents()
if (autoCompleteBuffer[0] != '\0')
{
Common::Event event;
- OSystem_DS* system = OSystem_DS::instance();
+ OSystem_DS* system = OSystem_DS::instance();
event.kbd.keycode = (Common::KeyCode) autoCompleteBuffer[0];
event.kbd.ascii = autoCompleteBuffer[0];
@@ -433,7 +433,7 @@ void addKeyboardEvents() {
for (int r = 0; r < DS_NUM_KEYS; r++) {
if (( (tx >= keys[r].x) && (tx <= keys[r].x + 1)) &&
(ty >= keys[r].y) && (ty <= keys[r].y + 1)) {
- OSystem_DS* system = OSystem_DS::instance();
+ OSystem_DS* system = OSystem_DS::instance();
Common::Event event;
// consolePrintf("Key: %d\n", r);
@@ -491,7 +491,7 @@ void addKeyboardEvents() {
if (keys[r].pressed) {
DS::setKeyHighlight(r, false);
- OSystem_DS* system = OSystem_DS::instance();
+ OSystem_DS* system = OSystem_DS::instance();
Common::Event event;
createKeyEvent(r, event);
diff --git a/backends/platform/ds/arm9/source/zipreader.cpp b/backends/platform/ds/arm9/source/zipreader.cpp
index 7af0718a44..8ba56c2b7c 100644
--- a/backends/platform/ds/arm9/source/zipreader.cpp
+++ b/backends/platform/ds/arm9/source/zipreader.cpp
@@ -98,7 +98,7 @@ bool ZipFile::currentFileInFolder() {
if (_directory[0] == 0) { // Root directory
name[strlen(name) - 1] = 0;
- return !strchr(name, '\\'); // Not in root if contains a / character before the last character
+ return !strchr(name, '\\'); // Not in root if contains a / character before the last character
} else {
/* if (name starts with directory && it's not the directory
&& (no slashes after the directory || it's the last character)
@@ -170,7 +170,7 @@ int ZipFile::getFileSize() {
}
bool ZipFile::isDirectory() {
- return _currentFile->fileSize == 0; // This is a bit wrong, but seems to work.
+ return _currentFile->fileSize == 0; // This is a bit wrong, but seems to work.
}
char* ZipFile::getFile() {
diff --git a/backends/platform/gp2x/events.cpp b/backends/platform/gp2x/events.cpp
index d9ff45130a..b68c2619cc 100644
--- a/backends/platform/gp2x/events.cpp
+++ b/backends/platform/gp2x/events.cpp
@@ -214,7 +214,7 @@ void OSystem_GP2X::moveStick() {
} else if ((stickBtn[3])||(stickBtn[4])||(stickBtn[5])){
if (_km.y_down_count!=2){
_km.y_vel = 1;
- _km.y_down_count = 1;
+ _km.y_down_count = 1;
}else
_km.y_vel = 4;
}
@@ -297,7 +297,7 @@ bool OSystem_GP2X::pollEvent(Common::Event &event) {
Combos:
GP2X_BUTTON_VOLUP & GP2X_BUTTON_VOLDOWN 0 (For Monkey 2 CP)
- GP2X_BUTTON_L & GP2X_BUTTON_SELECT Common::EVENT_QUIT (Calls Sync() to make sure SD is flushed)
+ GP2X_BUTTON_L & GP2X_BUTTON_SELECT Common::EVENT_QUIT (Calls Sync() to make sure SD is flushed)
GP2X_BUTTON_L & GP2X_BUTTON_Y Toggles setZoomOnMouse() for larger then 320*240 games to scale to the point + raduis.
GP2X_BUTTON_L & GP2X_BUTTON_A Common::EVENT_PREDICTIVE_DIALOG for predictive text entry box (AGI games)
*/
diff --git a/backends/platform/gp2x/gp2x-common.h b/backends/platform/gp2x/gp2x-common.h
index 1aa5107fcc..3d4a4c90a0 100644
--- a/backends/platform/gp2x/gp2x-common.h
+++ b/backends/platform/gp2x/gp2x-common.h
@@ -309,7 +309,7 @@ protected:
int16 x, y;
// The size and hotspot of the original cursor image.
- int16 w, h;
+ int16 w, h;
int16 hotX, hotY;
// The size and hotspot of the pre-scaled cursor image, in real
diff --git a/backends/platform/gp2x/graphics.cpp b/backends/platform/gp2x/graphics.cpp
index 1aa7519f86..2f16cf7068 100644
--- a/backends/platform/gp2x/graphics.cpp
+++ b/backends/platform/gp2x/graphics.cpp
@@ -1222,29 +1222,29 @@ void OSystem_GP2X::setMouseCursor(const byte *buf, uint w, uint h, int hotspot_x
_mouseKeyColor = keycolor;
- _cursorTargetScale = cursorTargetScale;
+ _cursorTargetScale = cursorTargetScale;
- if (_mouseCurState.w != (int)w || _mouseCurState.h != (int)h) {
- _mouseCurState.w = w;
- _mouseCurState.h = h;
+ if (_mouseCurState.w != (int)w || _mouseCurState.h != (int)h) {
+ _mouseCurState.w = w;
+ _mouseCurState.h = h;
- if (_mouseOrigSurface)
- SDL_FreeSurface(_mouseOrigSurface);
+ if (_mouseOrigSurface)
+ SDL_FreeSurface(_mouseOrigSurface);
// Allocate bigger surface because AdvMame2x adds black pixel at [0,0]
- _mouseOrigSurface = SDL_CreateRGBSurface(SDL_SWSURFACE | SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA,
- _mouseCurState.w + 2,
- _mouseCurState.h + 2,
- 16,
- _hwscreen->format->Rmask,
- _hwscreen->format->Gmask,
- _hwscreen->format->Bmask,
- _hwscreen->format->Amask);
-
- if (_mouseOrigSurface == NULL)
- error("allocating _mouseOrigSurface failed");
- SDL_SetColorKey(_mouseOrigSurface, SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA, kMouseColorKey);
- }
+ _mouseOrigSurface = SDL_CreateRGBSurface(SDL_SWSURFACE | SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA,
+ _mouseCurState.w + 2,
+ _mouseCurState.h + 2,
+ 16,
+ _hwscreen->format->Rmask,
+ _hwscreen->format->Gmask,
+ _hwscreen->format->Bmask,
+ _hwscreen->format->Amask);
+
+ if (_mouseOrigSurface == NULL)
+ error("allocating _mouseOrigSurface failed");
+ SDL_SetColorKey(_mouseOrigSurface, SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA, kMouseColorKey);
+ }
free(_mouseData);
@@ -1260,7 +1260,7 @@ void OSystem_GP2X::blitCursor() {
int w, h, i, j;
if (!_mouseOrigSurface || !_mouseData)
- return;
+ return;
w = _mouseCurState.w;
h = _mouseCurState.h;
@@ -1297,7 +1297,7 @@ void OSystem_GP2X::blitCursor() {
srcPtr++;
}
dstPtr += _mouseOrigSurface->pitch - w * 2;
- }
+ }
int rW, rH;
@@ -1338,7 +1338,7 @@ void OSystem_GP2X::blitCursor() {
_mouseCurState.vH = h;
_mouseCurState.vHotX = _mouseCurState.hotX;
_mouseCurState.vHotY = _mouseCurState.hotY;
- }
+ }
int rH1 = rH; // store original to pass to aspect-correction function later
if (_adjustAspectRatio && _cursorTargetScale == 1) {
@@ -1366,7 +1366,7 @@ void OSystem_GP2X::blitCursor() {
error("allocating _mouseSurface failed");
SDL_SetColorKey(_mouseSurface, SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA, kMouseColorKey);
- }
+ }
SDL_LockSurface(_mouseSurface);
@@ -1429,7 +1429,7 @@ void OSystem_GP2X::undrawMouse() {
void OSystem_GP2X::drawMouse() {
if (!_mouseVisible || !_mouseSurface) {
_mouseBackup.x = _mouseBackup.y = _mouseBackup.w = _mouseBackup.h = 0;
- return;
+ return;
}
SDL_Rect zoomdst;
diff --git a/backends/platform/gp32/Makefile b/backends/platform/gp32/Makefile
index d3ae963ca2..327bee9d10 100644
--- a/backends/platform/gp32/Makefile
+++ b/backends/platform/gp32/Makefile
@@ -56,7 +56,7 @@ GPSDK = /usr/compat/gp32/share/sdk
LDSPECS = -specs=gp32_gpsdk.specs
-LDFLAGS = $(STRIP_DEBUG) -Wl,-Map,$(MAPFILE) $(LDSPECS) -Wl,--no-warn-mismatch
+LDFLAGS = $(STRIP_DEBUG) -Wl,-Map,$(MAPFILE) $(LDSPECS) -Wl,--no-warn-mismatch
LIBS += -L$(GPSDK)/lib \
-lgpmem -lgpos -lgpstdio -lgpstdlib -lgpsound -lgpgraphic -lgpfont \
@@ -75,7 +75,7 @@ FXE = scummvm.fxe
# Plugins hack
srcdir = ./
-DEFINES = -D__GP32__
+DEFINES = -D__GP32__
DEFINES += -DNONSTANDARD_PORT
# Disable new themes. GP32 has LOW memory!
@@ -132,7 +132,7 @@ OBJS += backends/platform/gp32/gp32std.o \
#backends/platform/gp32/dmaaudio.o \
#Main ScummVM for the GP32 Backend
-OBJS += backends/platform/gp32/gp32_main.o \
+OBJS += backends/platform/gp32/gp32_main.o \
backends/platform/gp32/gp32_launcher.o \
backends/platform/gp32/gp32_osys.o \
backends/fs/gp32/gp32-fs.o
diff --git a/backends/platform/gp32/debug-gdbstub-usb.cpp b/backends/platform/gp32/debug-gdbstub-usb.cpp
index 9899ae47ec..76b7fad13b 100644
--- a/backends/platform/gp32/debug-gdbstub-usb.cpp
+++ b/backends/platform/gp32/debug-gdbstub-usb.cpp
@@ -141,7 +141,7 @@ static char * arm_register_name_strings[] =
// Some USB stuff
GPN_DESC g_CommDesc;
GPN_COMM g_Comm;
-const char HexDigits[17] = "0123456789abcdef";
+const char HexDigits[17] = "0123456789abcdef";
char g_SendBuffer[256];
char g_TempBuffer[256];
char g_ReadBuffer[0x100];
@@ -592,7 +592,7 @@ int GetBytes(char *pBuffer)
void SendMemory(void *pAddr, int iBytes)
{
unsigned char *pData;
- unsigned char iData;
+ unsigned char iData;
int iBufferPos = 0;
int iBytesToSend;
char Byte;
@@ -1016,7 +1016,7 @@ void BreakPoint()
int iResult;
int iMessageLength;
int iOffsetAdd;
- int iNullVal = 0;
+ int iNullVal = 0;
void *pAddr;
int iOffset;
int iBytes;
@@ -1871,7 +1871,7 @@ unsigned int DecodeLSRO(lsro Instr, unsigned int uiPC)
unsigned int DecodeLSM(lsm Instr, unsigned int uiPC)
{
unsigned int uiRnValue = g_Registers[Instr.Rn];
- unsigned int uiOffsetToPC = 0;
+ unsigned int uiOffsetToPC = 0;
unsigned int uiMemValue;
// Make sure PC is destination and it's Load instruction
diff --git a/backends/platform/gp32/gp32std_memory.h b/backends/platform/gp32/gp32std_memory.h
index 6fe5804453..b824e33838 100644
--- a/backends/platform/gp32/gp32std_memory.h
+++ b/backends/platform/gp32/gp32std_memory.h
@@ -30,6 +30,6 @@ extern void * gp_memcpy(void *dst, const void *src, size_t count);
extern void * gp_memset(void *dst, int val, size_t count);
extern void * gp_malloc(size_t size);
extern void * gp_calloc(size_t nitems, size_t size);
-extern void gp_free(void *block);
+extern void gp_free(void *block);
#endif
diff --git a/backends/platform/iphone/iphone_keyboard.m b/backends/platform/iphone/iphone_keyboard.m
index 923b7be46d..dc2d417746 100644
--- a/backends/platform/iphone/iphone_keyboard.m
+++ b/backends/platform/iphone/iphone_keyboard.m
@@ -42,7 +42,7 @@
- (id)initWithKeyboard:(SoftKeyboard*)keyboard; {
self = [super initWithFrame:CGRectMake(0.0f, 0.0f, 0.0f, 0.0f)];
- softKeyboard = keyboard;
+ softKeyboard = keyboard;
return self;
}
@@ -85,4 +85,4 @@
[inputDelegate handleKeyPress:c];
}
-@end \ No newline at end of file
+@end
diff --git a/backends/platform/iphone/iphone_video.m b/backends/platform/iphone/iphone_video.m
index d3a0b00bbe..6c6944045e 100644
--- a/backends/platform/iphone/iphone_video.m
+++ b/backends/platform/iphone/iphone_video.m
@@ -70,7 +70,7 @@ void iPhone_initSurface(int width, int height, bool landscape) {
_height = height;
_landscape = landscape;
- [sharedInstance performSelectorOnMainThread:@selector(initSurface) withObject:nil waitUntilDone: YES];
+ [sharedInstance performSelectorOnMainThread:@selector(initSurface) withObject:nil waitUntilDone: YES];
}
bool iPhone_fetchEvent(int *outEvent, float *outX, float *outY) {
@@ -134,14 +134,14 @@ bool getLocalMouseCoords(CGPoint *point) {
- (void)drawRect:(CGRect)frame {
// if (lastTick == 0) {
- // lastTick = time(0);
+ // lastTick = time(0);
// }
//
// frames++;
// if (time(0) > lastTick) {
- // lastTick = time(0);
- // printf("FPS: %i\n", frames);
- // frames = 0;
+ // lastTick = time(0);
+ // printf("FPS: %i\n", frames);
+ // frames = 0;
// }
}
@@ -336,25 +336,25 @@ bool getLocalMouseCoords(CGPoint *point) {
// struct CGPoint point = GSEventGetLocationInWindow(event);
//
// if (!getLocalMouseCoords(&point))
- // return;
+ // return;
//
// [self addEvent:
- // [[NSDictionary alloc] initWithObjectsAndKeys:
- // [NSNumber numberWithInt:kInputMouseSecondToggled], @"type",
- // [NSNumber numberWithFloat:point.x], @"x",
- // [NSNumber numberWithFloat:point.y], @"y",
- // nil
- // ]
+ // [[NSDictionary alloc] initWithObjectsAndKeys:
+ // [NSNumber numberWithInt:kInputMouseSecondToggled], @"type",
+ // [NSNumber numberWithFloat:point.x], @"x",
+ // [NSNumber numberWithFloat:point.y], @"y",
+ // nil
+ // ]
// ];
}
- (void)mouseExited:(GSEvent*)event {
//printf("mouseExited().\n");
// [self addEvent:
- // [[NSDictionary alloc] initWithObjectsAndKeys:
- // @"mouseExited", @"type",
- // nil
- // ]
+ // [[NSDictionary alloc] initWithObjectsAndKeys:
+ // @"mouseExited", @"type",
+ // nil
+ // ]
// ];
}
diff --git a/backends/platform/iphone/osys_iphone.cpp b/backends/platform/iphone/osys_iphone.cpp
index 2ca629d0e2..5bbb1b4ca9 100644
--- a/backends/platform/iphone/osys_iphone.cpp
+++ b/backends/platform/iphone/osys_iphone.cpp
@@ -728,7 +728,7 @@ bool OSystem_IPHONE::pollEvent(Common::Event &event) {
//printf("Mouse dragged at (%u, %u)\n", x, y);
if (_secondaryTapped) {
if (_gestureStartX == -1 || _gestureStartY == -1) {
- return false;
+ return false;
}
int vecX = (x - _gestureStartX);
diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp
index 59b05c8e0b..384ec1f935 100644
--- a/backends/platform/ps2/systemps2.cpp
+++ b/backends/platform/ps2/systemps2.cpp
@@ -465,7 +465,7 @@ void OSystem_PS2::soundThread(void) {
" addiu $t8, 32\n\t"
" bnez $t9, loop\n\t" // loop
: // outputs
- : "r"(soundBufL), "r"(soundBufR) // inputs
+ : "r"(soundBufL), "r"(soundBufR) // inputs
// : "$t2", "$t3", "$t4", "$t5", "$t6", "$t7", "$t8", "$t9" // destroyed
: "$10", "$11", "$12", "$13", "$14", "$15", "$24", "$25" // destroyed
);
diff --git a/backends/platform/psp/Makefile b/backends/platform/psp/Makefile
index 2ff47e057b..094eac9c18 100644
--- a/backends/platform/psp/Makefile
+++ b/backends/platform/psp/Makefile
@@ -20,8 +20,8 @@ LD = psp-gcc
AR = psp-ar cru
RANLIB = psp-ranlib
STRIP = psp-strip
-MKDIR = mkdir -p
-RM = rm -f
+MKDIR = mkdir -p
+RM = rm -f
MKSFO = mksfo
PACK_PBP = pack-pbp
FIXUP = psp-fixup-imports
diff --git a/backends/platform/psp/README.PSP b/backends/platform/psp/README.PSP
index 9fff9178bd..1f3aa6a10a 100644
--- a/backends/platform/psp/README.PSP
+++ b/backends/platform/psp/README.PSP
@@ -12,12 +12,12 @@ Installation
Controls
========
-Left trigger - ESC
-Right trigger - Enter
-Analog - Mouse movement
+Left trigger - ESC
+Right trigger - Enter
+Analog - Mouse movement
Directionals - Mouse movement
Analog + triangle - Fine control mouse
-Cross - Mouse button 1
+Cross - Mouse button 1
Circle - Mouse button 2
Square - '.' (skip dialogue in some games)
Select - Show/Hide Virtual Keyboard
@@ -76,9 +76,9 @@ To build ScummVM for PSP you need:
- PSP toolchain (svn co svn://svn.pspdev.org/psp/trunk/psptoolchain)
-- PSPSDK (svn co svn://svn.pspdev.org/psp/trunk/pspsdk)
- Note: This usually gets installed by the PSP toolchain,
- so you don't have to do it manually.
+- PSPSDK (svn co svn://svn.pspdev.org/psp/trunk/pspsdk)
+ Note: This usually gets installed by the PSP toolchain,
+ so you don't have to do it manually.
- SDL (svn co svn://svn.pspdev.org/psp/trunk/SDL)
diff --git a/backends/platform/psp/osys_psp_gu.cpp b/backends/platform/psp/osys_psp_gu.cpp
index 8925300c51..7e36fe6db0 100644
--- a/backends/platform/psp/osys_psp_gu.cpp
+++ b/backends/platform/psp/osys_psp_gu.cpp
@@ -65,7 +65,7 @@ unsigned char kbd_ascii_cl[] = {'!', '@', '#', '$', '%', '^', '&', '*', '(', ')'
Common::KeyCode kbd_code_cl[] = {Common::KEYCODE_EXCLAIM, Common::KEYCODE_AT, Common::KEYCODE_HASH, Common::KEYCODE_DOLLAR, (Common::KeyCode)37, Common::KEYCODE_CARET, Common::KEYCODE_AMPERSAND, Common::KEYCODE_ASTERISK, Common::KEYCODE_LEFTPAREN, Common::KEYCODE_RIGHTPAREN, Common::KEYCODE_UNDERSCORE,
Common::KEYCODE_PLUS, (Common::KeyCode)123, (Common::KeyCode)125, (Common::KeyCode)124, Common::KEYCODE_COLON, Common::KEYCODE_QUOTEDBL, Common::KEYCODE_LESS, Common::KEYCODE_GREATER, Common::KEYCODE_QUESTION, (Common::KeyCode)126};
#define CAPS_LOCK (1 << 0)
-#define SYMBOLS (1 << 1)
+#define SYMBOLS (1 << 1)
OSystem_PSP_GU::OSystem_PSP_GU() {
@@ -278,9 +278,9 @@ void OSystem_PSP_GU::updateScreen() {
sceGuClutLoad(32, clut256); // upload 32*8 entries (256)
sceGuTexMode(GU_PSM_T8, 0, 0, 0); // 8-bit image
if (_screenWidth == 320)
- sceGuTexImage(0, 512, 256, _screenWidth, _offscreen);
+ sceGuTexImage(0, 512, 256, _screenWidth, _offscreen);
else
- sceGuTexImage(0, 512, 512, _screenWidth, _offscreen);
+ sceGuTexImage(0, 512, 512, _screenWidth, _offscreen);
sceGuTexFunc(GU_TFX_REPLACE, GU_TCC_RGB);
sceGuTexFilter(GU_LINEAR, GU_LINEAR);
sceGuTexOffset(0,0);
@@ -349,7 +349,7 @@ void OSystem_PSP_GU::updateScreen() {
}
// draw mouse
- if (_mouseVisible) {
+ if (_mouseVisible) {
sceGuTexMode(GU_PSM_T8, 0, 0, 0); // 8-bit image
sceGuClutMode(GU_PSM_5551, 0, 0xff, 0);
sceGuClutLoad(32, mouseClut); // upload 32*8 entries (256)
diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp
index eb71a1ba0e..b9d1e37c05 100644
--- a/backends/platform/sdl/graphics.cpp
+++ b/backends/platform/sdl/graphics.cpp
@@ -1289,29 +1289,29 @@ void OSystem_SDL::setMouseCursor(const byte *buf, uint w, uint h, int hotspot_x,
_mouseKeyColor = keycolor;
- _cursorTargetScale = cursorTargetScale;
+ _cursorTargetScale = cursorTargetScale;
- if (_mouseCurState.w != (int)w || _mouseCurState.h != (int)h) {
- _mouseCurState.w = w;
- _mouseCurState.h = h;
+ if (_mouseCurState.w != (int)w || _mouseCurState.h != (int)h) {
+ _mouseCurState.w = w;
+ _mouseCurState.h = h;
- if (_mouseOrigSurface)
- SDL_FreeSurface(_mouseOrigSurface);
+ if (_mouseOrigSurface)
+ SDL_FreeSurface(_mouseOrigSurface);
// Allocate bigger surface because AdvMame2x adds black pixel at [0,0]
- _mouseOrigSurface = SDL_CreateRGBSurface(SDL_SWSURFACE | SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA,
- _mouseCurState.w + 2,
- _mouseCurState.h + 2,
- 16,
- _hwscreen->format->Rmask,
- _hwscreen->format->Gmask,
- _hwscreen->format->Bmask,
- _hwscreen->format->Amask);
-
- if (_mouseOrigSurface == NULL)
- error("allocating _mouseOrigSurface failed");
- SDL_SetColorKey(_mouseOrigSurface, SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA, kMouseColorKey);
- }
+ _mouseOrigSurface = SDL_CreateRGBSurface(SDL_SWSURFACE | SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA,
+ _mouseCurState.w + 2,
+ _mouseCurState.h + 2,
+ 16,
+ _hwscreen->format->Rmask,
+ _hwscreen->format->Gmask,
+ _hwscreen->format->Bmask,
+ _hwscreen->format->Amask);
+
+ if (_mouseOrigSurface == NULL)
+ error("allocating _mouseOrigSurface failed");
+ SDL_SetColorKey(_mouseOrigSurface, SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA, kMouseColorKey);
+ }
free(_mouseData);
@@ -1327,7 +1327,7 @@ void OSystem_SDL::blitCursor() {
int w, h, i, j;
if (!_mouseOrigSurface || !_mouseData)
- return;
+ return;
w = _mouseCurState.w;
h = _mouseCurState.h;
@@ -1364,7 +1364,7 @@ void OSystem_SDL::blitCursor() {
srcPtr++;
}
dstPtr += _mouseOrigSurface->pitch - w * 2;
- }
+ }
int rW, rH;
@@ -1405,7 +1405,7 @@ void OSystem_SDL::blitCursor() {
_mouseCurState.vH = h;
_mouseCurState.vHotX = _mouseCurState.hotX;
_mouseCurState.vHotY = _mouseCurState.hotY;
- }
+ }
#ifndef DISABLE_SCALERS
int rH1 = rH; // store original to pass to aspect-correction function later
@@ -1436,7 +1436,7 @@ void OSystem_SDL::blitCursor() {
error("allocating _mouseSurface failed");
SDL_SetColorKey(_mouseSurface, SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA, kMouseColorKey);
- }
+ }
SDL_LockSurface(_mouseSurface);
@@ -1510,7 +1510,7 @@ void OSystem_SDL::undrawMouse() {
void OSystem_SDL::drawMouse() {
if (!_mouseVisible || !_mouseSurface) {
_mouseBackup.x = _mouseBackup.y = _mouseBackup.w = _mouseBackup.h = 0;
- return;
+ return;
}
SDL_Rect dst;
diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h
index 827e8c300b..1ddd74693c 100644
--- a/backends/platform/sdl/sdl.h
+++ b/backends/platform/sdl/sdl.h
@@ -312,7 +312,7 @@ protected:
int16 x, y;
// The size and hotspot of the original cursor image.
- int16 w, h;
+ int16 w, h;
int16 hotX, hotY;
// The size and hotspot of the pre-scaled cursor image, in real
diff --git a/backends/platform/symbian/BuildPackageUpload_AllVersions.pl b/backends/platform/symbian/BuildPackageUpload_AllVersions.pl
index 7b07993c4e..a40f8b7663 100644
--- a/backends/platform/symbian/BuildPackageUpload_AllVersions.pl
+++ b/backends/platform/symbian/BuildPackageUpload_AllVersions.pl
@@ -320,7 +320,7 @@ my $header = "
{
PrintErrorMessage("'abld build $TargetName urel' apparently failed.");
if ($HaltOnError)
- {
+ {
PrintErrorMessage("Halting on error as requested!");
exit 1;
}
diff --git a/backends/platform/symbian/S60/ScummVM_S60.mmp.in b/backends/platform/symbian/S60/ScummVM_S60.mmp.in
index 2720264971..099b33ed95 100644
--- a/backends/platform/symbian/S60/ScummVM_S60.mmp.in
+++ b/backends/platform/symbian/S60/ScummVM_S60.mmp.in
@@ -63,8 +63,8 @@ STATICLIBRARY egcc.lib // for __fixunsdfsi
USERINCLUDE ..\..\..\.. ..\..\..\..\common ..\..\..\..\gui ..\..\..\..\engines
USERINCLUDE ..\..\..\..\backends\fs ..\src ..\..\..\..\backends\platform\sdl ..\..\..\..\sound
-SYSTEMINCLUDE \epoc32\include\ESDL
-SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
+SYSTEMINCLUDE \epoc32\include\ESDL
+SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE ..\src // for portdefs.h
diff --git a/backends/platform/symbian/S60v3/ScummVM_S60v3.mmp.in b/backends/platform/symbian/S60v3/ScummVM_S60v3.mmp.in
index ae43031356..f175ecc05c 100644
--- a/backends/platform/symbian/S60v3/ScummVM_S60v3.mmp.in
+++ b/backends/platform/symbian/S60v3/ScummVM_S60v3.mmp.in
@@ -41,7 +41,7 @@ TARGETPATH \Resource\Apps
LANG SC
END
-SOURCEPATH ..\res
+SOURCEPATH ..\res
START RESOURCE ScummVM.rss
HEADER
TARGETPATH \Resource\Apps
@@ -89,8 +89,8 @@ staticlibrary rate_arm_asm.o codec47ARM.o gfxARM.o
USERINCLUDE ..\..\..\.. ..\..\..\..\common ..\..\..\..\gui ..\..\..\..\engines
USERINCLUDE ..\..\..\..\backends\fs ..\src ..\..\..\..\backends\platform\sdl ..\..\..\..\sound
-SYSTEMINCLUDE \epoc32\include\ESDL
-SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
+SYSTEMINCLUDE \epoc32\include\ESDL
+SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE ..\src // for portdefs.h
diff --git a/backends/platform/symbian/S80/ScummVM_S80.mmp.in b/backends/platform/symbian/S80/ScummVM_S80.mmp.in
index 326e895941..95879dd2af 100644
--- a/backends/platform/symbian/S80/ScummVM_S80.mmp.in
+++ b/backends/platform/symbian/S80/ScummVM_S80.mmp.in
@@ -61,8 +61,8 @@ STATICLIBRARY egcc.lib // for __fixunsdfsi
USERINCLUDE ..\..\..\.. ..\..\..\..\common ..\..\..\..\gui ..\..\..\..\engines
USERINCLUDE ..\..\..\..\backends\fs ..\src ..\..\..\..\backends\platform\sdl ..\..\..\..\sound
-SYSTEMINCLUDE \epoc32\include\ESDL
-SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
+SYSTEMINCLUDE \epoc32\include\ESDL
+SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE ..\src // for portdefs.h
diff --git a/backends/platform/symbian/S90/Scummvm_S90.mmp.in b/backends/platform/symbian/S90/Scummvm_S90.mmp.in
index df8872515f..47a3d9a1d4 100644
--- a/backends/platform/symbian/S90/Scummvm_S90.mmp.in
+++ b/backends/platform/symbian/S90/Scummvm_S90.mmp.in
@@ -61,8 +61,8 @@ STATICLIBRARY egcc.lib // for __fixunsdfsi
USERINCLUDE ..\..\..\.. ..\..\..\..\common ..\..\..\..\gui ..\..\..\..\engines
USERINCLUDE ..\..\..\..\backends\fs ..\src ..\..\..\..\backends\platform\sdl ..\..\..\..\sound
-SYSTEMINCLUDE \epoc32\include\ESDL
-SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
+SYSTEMINCLUDE \epoc32\include\ESDL
+SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE ..\src // for portdefs.h
diff --git a/backends/platform/symbian/UIQ2/ScummVM_UIQ2.mmp.in b/backends/platform/symbian/UIQ2/ScummVM_UIQ2.mmp.in
index cfd6c27fd6..e9dff7b94f 100644
--- a/backends/platform/symbian/UIQ2/ScummVM_UIQ2.mmp.in
+++ b/backends/platform/symbian/UIQ2/ScummVM_UIQ2.mmp.in
@@ -59,8 +59,8 @@ STATICLIBRARY egcc.lib // for __fixunsdfsi
USERINCLUDE ..\..\..\.. ..\..\..\..\common ..\..\..\..\gui ..\..\..\..\engines
USERINCLUDE ..\..\..\..\backends\fs ..\src ..\..\..\..\backends\platform\sdl ..\..\..\..\sound
-SYSTEMINCLUDE \epoc32\include\ESDL
-SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
+SYSTEMINCLUDE \epoc32\include\ESDL
+SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE ..\src // for portdefs.h
diff --git a/backends/platform/symbian/UIQ3/ScummVM_UIQ3.mmp.in b/backends/platform/symbian/UIQ3/ScummVM_UIQ3.mmp.in
index 0b43f7b4c6..634b41a60f 100644
--- a/backends/platform/symbian/UIQ3/ScummVM_UIQ3.mmp.in
+++ b/backends/platform/symbian/UIQ3/ScummVM_UIQ3.mmp.in
@@ -41,7 +41,7 @@ TARGETPATH \Resource\Apps
LANG SC
END
-SOURCEPATH .
+SOURCEPATH .
START RESOURCE ScummVM.rss
HEADER
TARGETPATH \Resource\Apps
@@ -89,8 +89,8 @@ staticlibrary rate_arm_asm.o codec47ARM.o gfxARM.o
USERINCLUDE ..\..\..\.. ..\..\..\..\common ..\..\..\..\gui ..\..\..\..\engines
USERINCLUDE ..\..\..\..\backends\fs ..\src ..\..\..\..\backends\platform\sdl ..\..\..\..\sound
-SYSTEMINCLUDE \epoc32\include\ESDL
-SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
+SYSTEMINCLUDE \epoc32\include\ESDL
+SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE ..\src // for portdefs.h
diff --git a/backends/platform/symbian/mmp/scummvm_base.mmp.in b/backends/platform/symbian/mmp/scummvm_base.mmp.in
index 13df4c2460..7bccafc5e1 100644
--- a/backends/platform/symbian/mmp/scummvm_base.mmp.in
+++ b/backends/platform/symbian/mmp/scummvm_base.mmp.in
@@ -67,8 +67,8 @@ ALWAYS_BUILD_AS_ARM
USERINCLUDE ..\..\..\.. ..\..\..\..\common ..\..\..\..\gui ..\..\..\..\sound
USERINCLUDE ..\..\..\..\backends\fs ..\src ..\..\..\..\backends\platform\sdl
-SYSTEMINCLUDE \epoc32\include\ESDL
-SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
+SYSTEMINCLUDE \epoc32\include\ESDL
+SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE \epoc32\include\tremor
SYSTEMINCLUDE \epoc32\include
@@ -119,6 +119,6 @@ source backends\timer\default\default-timer.cpp
source backends\saves\savefile.cpp
source backends\saves\default\default-saves.cpp
source backends\saves\compressed\compressed-saves.cpp
-source engines\engine.cpp
+source engines\engine.cpp
// backend specific includes
// backend specific includes
diff --git a/backends/platform/symbian/mmp/scummvm_scumm.mmp.in b/backends/platform/symbian/mmp/scummvm_scumm.mmp.in
index a079297364..fabaaf232f 100644
--- a/backends/platform/symbian/mmp/scummvm_scumm.mmp.in
+++ b/backends/platform/symbian/mmp/scummvm_scumm.mmp.in
@@ -65,7 +65,7 @@ SOURCEPATH ..\..\..\..\engines\scumm
USERINCLUDE ..\..\..\..\engines ..\..\..\..\engines\scumm\smush ..\..\..\..\engines\scumm\insane
USERINCLUDE ..\..\..\.. ..\..\..\..\common ..\..\..\..\gui ..\..\..\..\sound ..\src
-SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
+SYSTEMINCLUDE \epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
SYSTEMINCLUDE \epoc32\include\libc
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE ..\src // for portdefs.h
diff --git a/backends/platform/symbian/src/ScummApp.cpp b/backends/platform/symbian/src/ScummApp.cpp
index cb08ccdd42..82e62412e8 100644
--- a/backends/platform/symbian/src/ScummApp.cpp
+++ b/backends/platform/symbian/src/ScummApp.cpp
@@ -77,7 +77,7 @@ CApaApplication* NewApplication() {
#include <eikstart.h>
// E32Main() contains the program's start up code, the entry point for an EXE.
GLDEF_C TInt E32Main() {
- return EikStart::RunApplication(NewApplication);
+ return EikStart::RunApplication(NewApplication);
}
#endif
diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp
index e76f6a93df..341f551716 100644
--- a/backends/platform/symbian/src/SymbianOS.cpp
+++ b/backends/platform/symbian/src/SymbianOS.cpp
@@ -243,7 +243,7 @@ void OSystem_SDL_Symbian::symbianMixCallback(void *s, byte *samples, int len) {
void OSystem_SDL_Symbian::symbianMix(byte *samples, int len) {
// If not stereo then we need to downmix
if (_channels != 2) {
- _sound_proc(_sound_proc_param, _stereo_mix_buffer, len * 2);
+ _sound_proc(_sound_proc_param, _stereo_mix_buffer, len * 2);
int16 *bitmixDst = (int16 *)samples;
int16 *bitmixSrc = (int16 *)_stereo_mix_buffer;
@@ -440,7 +440,7 @@ struct TSymbianFileEntry {
#define FILE void
-FILE* symbian_fopen(const char* name, const char* mode) {
+FILE* symbian_fopen(const char* name, const char* mode) {
TSymbianFileEntry* fileEntry = new TSymbianFileEntry;
if (fileEntry != NULL) {
diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h
index cfaafe9ece..5db6c99da6 100644
--- a/backends/platform/symbian/src/portdefs.h
+++ b/backends/platform/symbian/src/portdefs.h
@@ -98,7 +98,7 @@
return (SIGND (dl1) ? -l : l);
}
- /* okay, okay: I admit it: I absolutely have _NO_ idea why __fixdfdi does not get linked in by gcc from libgcc.a
+ /* okay, okay: I admit it: I absolutely have _NO_ idea why __fixdfdi does not get linked in by gcc from libgcc.a
because I know it's in there: I checked with `ar x _fixdfdi.o libgcc.a` and the symbol is in there, so I'm lost
and had to fix it this way. I tried all gcc and ld options I could find: no hope :( If someone can enlighten me:
feel free to let me know at sumthinwicked@users.sf.net! Much obliged.
diff --git a/backends/platform/wince/missing/dirent.h b/backends/platform/wince/missing/dirent.h
index 82dd0b2ee7..07e54bbb9d 100644
--- a/backends/platform/wince/missing/dirent.h
+++ b/backends/platform/wince/missing/dirent.h
@@ -7,7 +7,7 @@ struct dirent
long d_ino; /* Always zero. */
unsigned short d_reclen; /* Always zero. */
unsigned short d_namlen; /* Length of name in d_name. */
- char* d_name; /* File name. */
+ char* d_name; /* File name. */
/* NOTE: The name in the dirent structure points to the name in the
* finddata_t structure in the DIR. */
};
@@ -44,7 +44,7 @@ typedef struct
DIR* opendir (const char*);
struct dirent* readdir (DIR*);
-int closedir (DIR*);
+int closedir (DIR*);
/*
void rewinddir (DIR*);
long telldir (DIR*);
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp
index 3123baa7fb..8cf5fac279 100644
--- a/backends/platform/wince/wince-sdl.cpp
+++ b/backends/platform/wince/wince-sdl.cpp
@@ -1122,7 +1122,7 @@ bool OSystem_WINCE3::update_scalers() {
_adjustAspectRatio = false;
if (CEDevice::hasPocketPCResolution()) {
- if ( (!_orientationLandscape && (_screenWidth == 320 || !_screenWidth))
+ if ( (!_orientationLandscape && (_screenWidth == 320 || !_screenWidth))
|| CEDevice::hasSquareQVGAResolution() ) {
if (getScreenWidth() != 320) {
_scaleFactorXm = 3;
@@ -1157,14 +1157,14 @@ bool OSystem_WINCE3::update_scalers() {
_scalerProc = Normal1x;
_modeFlags = 0;
}
- } else if (_screenWidth == 640 && !(isOzone() && (getScreenWidth() >= 640 || getScreenHeight() >= 640))) {
+ } else if (_screenWidth == 640 && !(isOzone() && (getScreenWidth() >= 640 || getScreenHeight() >= 640))) {
_scaleFactorXm = 1;
_scaleFactorXd = 2;
_scaleFactorYm = 1;
_scaleFactorYd = 2;
_scalerProc = PocketPCHalf;
_modeFlags = 0;
- } else if (_screenWidth == 640 && (isOzone() && (getScreenWidth() >= 640 || getScreenHeight() >= 640))) {
+ } else if (_screenWidth == 640 && (isOzone() && (getScreenWidth() >= 640 || getScreenHeight() >= 640))) {
_scaleFactorXm = 1;
_scaleFactorXd = 1;
_scaleFactorYm = 1;
@@ -2433,7 +2433,7 @@ void OSystem_WINCE3::getTimeAndDate(struct tm &t) const {
SYSTEMTIME systime;
GetLocalTime(&systime);
- t.tm_year = systime.wYear - 1900;
+ t.tm_year = systime.wYear - 1900;
t.tm_mon = systime.wMonth - 1;
t.tm_wday = systime.wDayOfWeek;
t.tm_mday = systime.wDay;
diff --git a/backends/platform/x11/x11.cpp b/backends/platform/x11/x11.cpp
index 3c809c8c06..329d994335 100644
--- a/backends/platform/x11/x11.cpp
+++ b/backends/platform/x11/x11.cpp
@@ -439,7 +439,7 @@ void OSystem_X11::setPalette(const byte *colors, uint start, uint num) {
_palette_changed = true;
}
-#define AddDirtyRec(xi,yi,wi,hi) \
+#define AddDirtyRec(xi,yi,wi,hi) \
if (_num_of_dirty_rects < MAX_NUMBER_OF_DIRTY_RECTS) { \
_ds[_num_of_dirty_rects].x = xi; \
_ds[_num_of_dirty_rects].y = yi; \