[Scummvm-cvs-logs] CVS: scummvm/backends/gp32 gp32std_grap.cpp,1.2,1.3 gp32std_sound.cpp,1.2,1.3

Eugene Sandulenko sev at users.sourceforge.net
Fri Dec 16 23:34:00 CET 2005


Update of /cvsroot/scummvm/scummvm/backends/gp32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4070

Modified Files:
	gp32std_grap.cpp gp32std_sound.cpp 
Log Message:
Proper code formatting


Index: gp32std_grap.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/gp32/gp32std_grap.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gp32std_grap.cpp	8 Dec 2005 12:39:54 -0000	1.2
+++ gp32std_grap.cpp	17 Dec 2005 07:33:45 -0000	1.3
@@ -46,7 +46,7 @@
 		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;

Index: gp32std_sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/gp32/gp32std_sound.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gp32std_sound.cpp	17 Dec 2005 06:12:28 -0000	1.2
+++ gp32std_sound.cpp	17 Dec 2005 07:33:45 -0000	1.3
@@ -86,7 +86,7 @@
 				*d++ ^= 0x8000; // 30
 				*d++ ^= 0x8000; // 31
 				*d++ ^= 0x8000; // 32
-			} while((uint32)d < max);
+			} while ((uint32)d < max);
 		}
 	}
 }
@@ -106,7 +106,7 @@
 	// and a corresponding shift value
 	shiftVal = 0;
 
-	switch(soundBuf.format) {
+	switch (soundBuf.format) {
 	case 8:
 		gpFormat = PCM_8BIT;
 		break;
@@ -116,7 +116,7 @@
 		break;
 	}
 
-	switch(soundBuf.freq) {
+	switch (soundBuf.freq) {
 	case 11025:
 		if (soundBuf.channels == 2) {
 			gpFreq = PCM_S11;
@@ -148,7 +148,7 @@
 
 	// 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





More information about the Scummvm-git-logs mailing list