aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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