[Scummvm-cvs-logs] SF.net SVN: scummvm: [32368] scummvm/trunk/engines/drascula
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Thu May 29 20:18:39 CEST 2008
Revision: 32368
http://scummvm.svn.sourceforge.net/scummvm/?rev=32368&view=rev
Author: thebluegr
Date: 2008-05-29 11:18:38 -0700 (Thu, 29 May 2008)
Log Message:
-----------
ancho -> width
alto -> height
nuevo_ancho -> newWidth
nuevo_alto -> newHeight
suma_x -> totalX
suma_y -> totalY
Removed unneeded variables diferencia_x/diferencia_y
Modified Paths:
--------------
scummvm/trunk/engines/drascula/drascula.cpp
scummvm/trunk/engines/drascula/drascula.h
Modified: scummvm/trunk/engines/drascula/drascula.cpp
===================================================================
--- scummvm/trunk/engines/drascula/drascula.cpp 2008-05-29 18:09:12 UTC (rev 32367)
+++ scummvm/trunk/engines/drascula/drascula.cpp 2008-05-29 18:18:38 UTC (rev 32368)
@@ -3529,23 +3529,23 @@
return _system->getMillis() / 20; // originaly was 1
}
-void DrasculaEngine::reduce_hare_chico(int xx1, int yy1, int xx2, int yy2, int ancho, int alto, int factor, byte *dir_inicio, byte *dir_fin) {
- float suma_x, suma_y;
+void DrasculaEngine::reduce_hare_chico(int xx1, int yy1, int xx2, int yy2, int width, int height, int factor, byte *dir_inicio, byte *dir_fin) {
+ float totalX, totalY;
int n, m;
float pixel_x, pixel_y;
int pos_pixel[6];
- nuevo_ancho = (ancho * factor) / 100;
- nuevo_alto = (alto * factor) / 100;
+ newWidth = (width * factor) / 100;
+ newHeight = (height * factor) / 100;
- suma_x = ancho / nuevo_ancho;
- suma_y = alto / nuevo_alto;
+ totalX = width / newWidth;
+ totalY = height / newHeight;
pixel_x = xx1;
pixel_y = yy1;
- for (n = 0; n < nuevo_alto; n++) {
- for (m = 0; m < nuevo_ancho; m++) {
+ for (n = 0; n < newHeight; n++) {
+ for (m = 0; m < newWidth; m++) {
pos_pixel[0] = (int)pixel_x;
pos_pixel[1] = (int)pixel_y;
pos_pixel[2] = xx2 + m;
@@ -3555,10 +3555,10 @@
copyRectClip(pos_pixel, dir_inicio, dir_fin);
- pixel_x = pixel_x + suma_x;
+ pixel_x = pixel_x + totalX;
}
pixel_x = xx1;
- pixel_y = pixel_y + suma_y;
+ pixel_y = pixel_y + totalY;
}
}
@@ -3706,12 +3706,10 @@
}
if (num_ejec != 2) {
- diferencia_y = (int)(alto_hare - nuevo_alto);
- diferencia_x = (int)(ancho_hare - nuevo_ancho);
- hare_y = hare_y + diferencia_y;
- hare_x = hare_x + diferencia_x;
- alto_hare = (int)nuevo_alto;
- ancho_hare = (int)nuevo_ancho;
+ hare_y += (int)(alto_hare - newHeight);
+ hare_x += (int)(ancho_hare - newWidth);
+ alto_hare = (int)newHeight;
+ ancho_hare = (int)newWidth;
}
}
Modified: scummvm/trunk/engines/drascula/drascula.h
===================================================================
--- scummvm/trunk/engines/drascula/drascula.h 2008-05-29 18:09:12 UTC (rev 32367)
+++ scummvm/trunk/engines/drascula/drascula.h 2008-05-29 18:18:38 UTC (rev 32368)
@@ -325,8 +325,7 @@
int cambio_de_color;
int rompo_y_salgo;
int vb_x, sentido_vb, vb_se_mueve, frame_vb;
- float nuevo_alto, nuevo_ancho;
- int diferencia_x, diferencia_y;
+ float newHeight, newWidth;
int factor_red[202];
int frame_piano;
int frame_borracho;
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