[Scummvm-cvs-logs] SF.net SVN: scummvm: [32421] scummvm/trunk/engines/drascula/drascula.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat May 31 11:55:11 CEST 2008


Revision: 32421
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32421&view=rev
Author:   thebluegr
Date:     2008-05-31 02:55:11 -0700 (Sat, 31 May 2008)

Log Message:
-----------
x_pantalla/y_pantalla -> screenX/screenY
y_de_signos -> signY
pos_texto -> textPos

Modified Paths:
--------------
    scummvm/trunk/engines/drascula/drascula.cpp

Modified: scummvm/trunk/engines/drascula/drascula.cpp
===================================================================
--- scummvm/trunk/engines/drascula/drascula.cpp	2008-05-31 09:49:09 UTC (rev 32420)
+++ scummvm/trunk/engines/drascula/drascula.cpp	2008-05-31 09:55:11 UTC (rev 32421)
@@ -1508,8 +1508,8 @@
 	return true;
 }
 
-void DrasculaEngine::print_abc(const char *said, int x_pantalla, int y_pantalla) {
-	int pos_texto[8];
+void DrasculaEngine::print_abc(const char *said, int screenX, int screenY) {
+	int textPos[8];
 	int letterY = 0, letterX = 0, h, length;
 	length = strlen(said);
 	
@@ -1535,38 +1535,38 @@
 			}	// if
 		}	// for
 
-		pos_texto[0] = letterX;
-		pos_texto[1] = letterY;
-		pos_texto[2] = x_pantalla;
-		pos_texto[3] = y_pantalla;
-		pos_texto[4] = CHAR_WIDTH;
-		pos_texto[5] = CHAR_HEIGHT;
+		textPos[0] = letterX;
+		textPos[1] = letterY;
+		textPos[2] = screenX;
+		textPos[3] = screenY;
+		textPos[4] = CHAR_WIDTH;
+		textPos[5] = CHAR_HEIGHT;
 
-		copyRectClip(pos_texto, textSurface, screenSurface);
+		copyRectClip(textPos, textSurface, screenSurface);
 
-		x_pantalla = x_pantalla + CHAR_WIDTH;
-		if (x_pantalla > 317) {
-			x_pantalla = 0;
-			y_pantalla = y_pantalla + CHAR_HEIGHT + 2;
+		screenX = screenX + CHAR_WIDTH;
+		if (screenX > 317) {
+			screenX = 0;
+			screenY = screenY + CHAR_HEIGHT + 2;
 		}
 	}	// for
 }
 
-void DrasculaEngine::print_abc_opc(const char *said, int x_pantalla, int y_pantalla, int game) {
-	int pos_texto[6];
-	int y_de_signos, letterY, letterX = 0, h, length;
+void DrasculaEngine::print_abc_opc(const char *said, int screenX, int screenY, int game) {
+	int textPos[6];
+	int signY, letterY, letterX = 0, h, length;
 	length = strlen(said);
 
 	for (h = 0; h < length; h++) {
 		if (game == 1) {
 			letterY = 6;
-			y_de_signos = 15;
+			signY = 15;
 		} else if (game == 3) {
 			letterY = 56;
-			y_de_signos = 65;
+			signY = 65;
 		} else {
 			letterY = 31;
-			y_de_signos = 40;
+			signY = 40;
 		}
 
 		int c = toupper(said[h]);
@@ -1581,21 +1581,21 @@
 				letterX = multiplier * 7 + 10;
 
 				if (charMap[i].charType > 0)
-					letterY = y_de_signos;
+					letterY = signY;
 				break;
 			}	// if
 		}	// for
 
-		pos_texto[0] = letterX;
-		pos_texto[1] = letterY;
-		pos_texto[2] = x_pantalla;
-		pos_texto[3] = y_pantalla;
-		pos_texto[4] = CHAR_WIDTH_OPC;
-		pos_texto[5] = CHAR_HEIGHT_OPC;
+		textPos[0] = letterX;
+		textPos[1] = letterY;
+		textPos[2] = screenX;
+		textPos[3] = screenY;
+		textPos[4] = CHAR_WIDTH_OPC;
+		textPos[5] = CHAR_HEIGHT_OPC;
 
-		copyRectClip(pos_texto, backSurface, screenSurface);
+		copyRectClip(textPos, backSurface, screenSurface);
 
-		x_pantalla = x_pantalla + CHAR_WIDTH_OPC;
+		screenX = screenX + CHAR_WIDTH_OPC;
 	}
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list