aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-24 15:17:42 +0000
committerJohannes Schickel2009-05-24 15:17:42 +0000
commitb3c6751b9b7fc1401fd5e87a034cdaec92b67b20 (patch)
treeaa00dba58fb88ea2e095b886963370c7290c692b /backends/platform/ds
parent7c1eb057146af11793c627327f3fefe309d27fbb (diff)
downloadscummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.tar.gz
scummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.tar.bz2
scummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.zip
Strip trailing whitespaces in the whole code base.
svn-id: r40867
Diffstat (limited to 'backends/platform/ds')
-rw-r--r--backends/platform/ds/arm9/source/dsmain.cpp12
-rw-r--r--backends/platform/ds/arm9/source/dsoptions.cpp2
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.cpp4
-rw-r--r--backends/platform/ds/arm9/source/zipreader.cpp2
4 files changed, 10 insertions, 10 deletions
diff --git a/backends/platform/ds/arm9/source/dsmain.cpp b/backends/platform/ds/arm9/source/dsmain.cpp
index 621a2af082..ca2d2cb855 100644
--- a/backends/platform/ds/arm9/source/dsmain.cpp
+++ b/backends/platform/ds/arm9/source/dsmain.cpp
@@ -647,7 +647,7 @@ void displayMode8Bit() {
// ConsoleInit destroys the hardware palette :-(
OSystem_DS::instance()->restoreHardwarePalette();
-
+
// BG_PALETTE_SUB[255] = RGB15(31,31,31);//by default font will be rendered with color 255
// Do text stuff
@@ -893,7 +893,7 @@ void displayMode16Bit() {
BG3_XDX = isCpuScalerEnabled() ? 256 : (int) (1.25f * 256);
BG3_XDY = 0;
- BG3_YDX = 0;
+ BG3_YDX = 0;
BG3_YDY = (int) ((200.0f / 192.0f) * 256);
#ifdef HEAVY_LOGGING
@@ -1571,7 +1571,7 @@ void addEventsToQueue() {
}
- static int selectHoldCount = 0;
+ static int selectHoldCount = 0;
static const int SELECT_HOLD_TIME = 60;
if ((getKeysHeld() & KEY_SELECT)) {
@@ -1585,8 +1585,8 @@ void addEventsToQueue() {
selectHoldCount = 0;
}
-
-
+
+
if (getKeysReleased() & KEY_SELECT) {
if (selectHoldCount < SELECT_HOLD_TIME) {
// Just pressed select - show DS options screen
@@ -1838,7 +1838,7 @@ void soundBufferEmptyHandler() {
}
currentTimeMillis++;
// TIMER0 end
-
+
soundHiPart = !soundHiPart;
}
diff --git a/backends/platform/ds/arm9/source/dsoptions.cpp b/backends/platform/ds/arm9/source/dsoptions.cpp
index 52027f3a15..90f371e0a8 100644
--- a/backends/platform/ds/arm9/source/dsoptions.cpp
+++ b/backends/platform/ds/arm9/source/dsoptions.cpp
@@ -335,7 +335,7 @@ void DSOptionsDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint
close();
}
-
+
if ((!guard) && (cmd == 0x40000000)) {
close();
g_engine->openMainMenuDialog();
diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp
index 057e107bb6..e35e5edea0 100644
--- a/backends/platform/ds/arm9/source/osystem_ds.cpp
+++ b/backends/platform/ds/arm9/source/osystem_ds.cpp
@@ -425,12 +425,12 @@ void OSystem_DS::grabOverlay(OverlayColor* buf, int pitch) {
for (int y = 0; y < 200; y++) {
u16* src = start + (y * 320);
u16* dest = ((u16 *) (buf)) + (y * pitch);
-
+
for (int x = 0; x < 320; x++) {
*dest++ = *src++;
}
}
-
+
}
void OSystem_DS::copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h) {
diff --git a/backends/platform/ds/arm9/source/zipreader.cpp b/backends/platform/ds/arm9/source/zipreader.cpp
index fa9a229348..fd6da4e9b9 100644
--- a/backends/platform/ds/arm9/source/zipreader.cpp
+++ b/backends/platform/ds/arm9/source/zipreader.cpp
@@ -171,7 +171,7 @@ bool ZipFile::findFile(const char *search) {
char searchName[128];
strcpy(searchName, search);
char *tmp = searchName;
-
+
// Change slashes to backslashes
for (; *tmp; ++tmp) {
if (*tmp == '/')