diff Viewport.cpp @ 1987:a688e8646d72

Indoor viewport top fixed
author zipi
date Sat, 02 Nov 2013 15:50:44 +0000
parents 7840fe323f67
children 7a9477135943
line wrap: on
line diff
--- a/Viewport.cpp	Sat Nov 02 12:33:57 2013 +0000
+++ b/Viewport.cpp	Sat Nov 02 15:50:44 2013 +0000
@@ -57,7 +57,7 @@
     if ( pRenderer->pRenderD3D == 0 )
         this->uScreenCenterY = this->uScreen_BR_Y - fixpoint_mul(field_30, uScreenHeight);
     else
-        this->uScreenCenterY = uScreenHeight/2;
+        this->uScreenCenterY = (br_y + tl_y)/2;
     SetViewport(this->uScreen_TL_X, this->uScreen_TL_Y, this->uScreen_BR_X, this->uScreen_BR_Y);
     }