Mercurial > mm7
diff mm7_6.cpp @ 692:066e2b29b30f
viewport.cpp added
author | Gloval |
---|---|
date | Sat, 16 Mar 2013 21:57:32 +0400 |
parents | 2bf48d11d742 |
children | e0a1fccc89b1 |
line wrap: on
line diff
--- a/mm7_6.cpp Sat Mar 16 14:33:23 2013 +0200 +++ b/mm7_6.cpp Sat Mar 16 21:57:32 2013 +0400 @@ -7897,13 +7897,13 @@ v30 = 0; if ( pRenderer->pActiveZBuffer ) { - v29 = viewparams->uScreenX; - v23 = viewparams->uScreenZ; - if ( (signed int)viewparams->uScreenY < (signed int)viewparams->uScreenW ) + v29 = viewparams->uScreen_topL_X; + v23 = viewparams->uScreen_BttmR_X; + if ( (signed int)viewparams->uScreen_topL_Y < (signed int)viewparams->uScreen_BttmR_Y ) { - v25 = viewparams->uScreenW - viewparams->uScreenY; - v9 = &pRenderer->pActiveZBuffer[viewparams->uScreenX + 640 * viewparams->uScreenY]; - v26 = &pRenderer->pActiveZBuffer[viewparams->uScreenX + 640 * viewparams->uScreenY]; + v25 = viewparams->uScreen_BttmR_Y - viewparams->uScreen_topL_Y; + v9 = &pRenderer->pActiveZBuffer[viewparams->uScreen_topL_X + 640 * viewparams->uScreen_topL_Y]; + v26 = &pRenderer->pActiveZBuffer[viewparams->uScreen_topL_X + 640 * viewparams->uScreen_topL_Y]; do { if ( (signed int)v29 < (signed int)v23 )