aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorEugene Sandulenko2005-12-17 07:33:45 +0000
committerEugene Sandulenko2005-12-17 07:33:45 +0000
commit910a3ee48c0f3a244a54c8ba4e1b693975cc5f6f (patch)
tree922b198ff11cf87d9807b1bbea36dfd5ebedd308 /backends
parenta36c5781c18dc7c58225c55e341d951331f24579 (diff)
downloadscummvm-rg350-910a3ee48c0f3a244a54c8ba4e1b693975cc5f6f.tar.gz
scummvm-rg350-910a3ee48c0f3a244a54c8ba4e1b693975cc5f6f.tar.bz2
scummvm-rg350-910a3ee48c0f3a244a54c8ba4e1b693975cc5f6f.zip
Proper code formatting
svn-id: r19801
Diffstat (limited to 'backends')
-rw-r--r--backends/gp32/gp32std_grap.cpp2
-rw-r--r--backends/gp32/gp32std_sound.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/backends/gp32/gp32std_grap.cpp b/backends/gp32/gp32std_grap.cpp
index 820d68f9ee..5ccd9b47a6 100644
--- a/backends/gp32/gp32std_grap.cpp
+++ b/backends/gp32/gp32std_grap.cpp
@@ -46,7 +46,7 @@ void gp_putBitmap8x16(uint16 *frameBuffer, int x, int y, byte *lpBitmap, uint16
byte data = *pBitmap++;
for (int nCol = 0; nCol < 7; nCol ++) {
if (data & 0x80)
- if(x + nCol >= 0 && y + nRow >= 0 && x + nCol < 320 && y + nRow < 240)
+ if (x + nCol >= 0 && y + nRow >= 0 && x + nCol < 320 && y + nRow < 240)
gpd_drawPixel16(frameBuffer, x + nCol, y + nRow, wColor);
data <<= 1;
diff --git a/backends/gp32/gp32std_sound.cpp b/backends/gp32/gp32std_sound.cpp
index c235cc0af8..838ec8d55b 100644
--- a/backends/gp32/gp32std_sound.cpp
+++ b/backends/gp32/gp32std_sound.cpp
@@ -86,7 +86,7 @@ static void soundTimer() {
*d++ ^= 0x8000; // 30
*d++ ^= 0x8000; // 31
*d++ ^= 0x8000; // 32
- } while((uint32)d < max);
+ } while ((uint32)d < max);
}
}
}
@@ -106,7 +106,7 @@ int gp_soundBufStart(GPSOUNDBUF *sb) {
// and a corresponding shift value
shiftVal = 0;
- switch(soundBuf.format) {
+ switch (soundBuf.format) {
case 8:
gpFormat = PCM_8BIT;
break;
@@ -116,7 +116,7 @@ int gp_soundBufStart(GPSOUNDBUF *sb) {
break;
}
- switch(soundBuf.freq) {
+ switch (soundBuf.freq) {
case 11025:
if (soundBuf.channels == 2) {
gpFreq = PCM_S11;
@@ -148,7 +148,7 @@ int gp_soundBufStart(GPSOUNDBUF *sb) {
// Clear the buffer
uint16 *tmpBuf = (uint16 *)buffer;
- for(int i = 0; i < bufferSize / 2; i++)
+ for (int i = 0; i < bufferSize / 2; i++)
tmpBuf[i] = 0x8000;
// Frequency of the timer interrupt which polls the playing position