comparison mm7_6.cpp @ 692:066e2b29b30f

viewport.cpp added
author Gloval
date Sat, 16 Mar 2013 21:57:32 +0400
parents 2bf48d11d742
children e0a1fccc89b1
comparison
equal deleted inserted replaced
691:c93f29773f84 692:066e2b29b30f
7895 else 7895 else
7896 { 7896 {
7897 v30 = 0; 7897 v30 = 0;
7898 if ( pRenderer->pActiveZBuffer ) 7898 if ( pRenderer->pActiveZBuffer )
7899 { 7899 {
7900 v29 = viewparams->uScreenX; 7900 v29 = viewparams->uScreen_topL_X;
7901 v23 = viewparams->uScreenZ; 7901 v23 = viewparams->uScreen_BttmR_X;
7902 if ( (signed int)viewparams->uScreenY < (signed int)viewparams->uScreenW ) 7902 if ( (signed int)viewparams->uScreen_topL_Y < (signed int)viewparams->uScreen_BttmR_Y )
7903 { 7903 {
7904 v25 = viewparams->uScreenW - viewparams->uScreenY; 7904 v25 = viewparams->uScreen_BttmR_Y - viewparams->uScreen_topL_Y;
7905 v9 = &pRenderer->pActiveZBuffer[viewparams->uScreenX + 640 * viewparams->uScreenY]; 7905 v9 = &pRenderer->pActiveZBuffer[viewparams->uScreen_topL_X + 640 * viewparams->uScreen_topL_Y];
7906 v26 = &pRenderer->pActiveZBuffer[viewparams->uScreenX + 640 * viewparams->uScreenY]; 7906 v26 = &pRenderer->pActiveZBuffer[viewparams->uScreen_topL_X + 640 * viewparams->uScreen_topL_Y];
7907 do 7907 do
7908 { 7908 {
7909 if ( (signed int)v29 < (signed int)v23 ) 7909 if ( (signed int)v29 < (signed int)v23 )
7910 { 7910 {
7911 v28 = v9; 7911 v28 = v9;