diff Weather.cpp @ 692:066e2b29b30f

viewport.cpp added
author Gloval
date Sat, 16 Mar 2013 21:57:32 +0400
parents 1f0af5cac2dd
children e0a1fccc89b1
line wrap: on
line diff
--- a/Weather.cpp	Sat Mar 16 14:33:23 2013 +0200
+++ b/Weather.cpp	Sat Mar 16 21:57:32 2013 +0400
@@ -49,13 +49,13 @@
   signed int v32; // [sp+28h] [bp-4h]@10
 
   v26 = this;
-  v25 = viewparams->uScreenZ;
-  v28 = viewparams->uScreenY;
+  v25 = viewparams->uScreen_BttmR_X;
+  v28 = viewparams->uScreen_topL_Y;
   v31 = 0;
   v1 = pRenderer->pTargetSurface;
-  v29 = viewparams->uScreenX;
-  v23 = viewparams->uScreenW;
-  v24 = viewparams->uScreenZ - viewparams->uScreenX;
+  v29 = viewparams->uScreen_topL_X;
+  v23 = viewparams->uScreen_BttmR_Y;
+  v24 = viewparams->uScreen_BttmR_X - viewparams->uScreen_topL_X;
   do
   {
     v2 = &v26->field_0[2 * v31];
@@ -177,8 +177,8 @@
 
   v1 = this;
   v2 = 0;
-  v3 = pViewport->uScreenZ - pViewport->uScreenX - 4;
-  v4 = pViewport->uScreenW - pViewport->uScreenY - 4;
+  v3 = pViewport->uScreen_BR_X - pViewport->uScreen_TL_X - 4;
+  v4 = pViewport->uScreen_BR_Y - pViewport->uScreen_TL_Y - 4;
   do
   {
     v1->field_0[2 * v2++] = LOWORD(pViewport->uViewportX) + rand() % v3;
@@ -211,11 +211,11 @@
   v10 = this;
   if ( this->bRenderSnow != 1 )
     return 0;
-  HIWORD(v3) = HIWORD(viewparams->uScreenX);
+  HIWORD(v3) = HIWORD(viewparams->uScreen_topL_X);
   v4 = 0;
-  screen_width = viewparams->uScreenZ - viewparams->uScreenX;
-  screen_x = viewparams->uScreenX;
-  screen_z_minus_4 = viewparams->uScreenZ - 4;
+  screen_width = viewparams->uScreen_BttmR_X - viewparams->uScreen_topL_X;
+  screen_x = viewparams->uScreen_topL_X;
+  screen_z_minus_4 = viewparams->uScreen_BttmR_X - 4;
 
   auto _this = this->field_0;
   while ( 1 )