Oops, left the comment in the wrong one.

This commit is contained in:
Unknown W. Brackets 2014-09-24 23:11:47 -07:00
parent cee2827172
commit 67a54504c7
2 changed files with 2 additions and 2 deletions

View File

@ -720,7 +720,7 @@ void TransformDrawEngineDX9::ApplyDrawState(int prim) {
// This means that to get the analogue glViewport we must:
float vpX0 = vpXCenter - offsetX - fabsf(vpXScale);
float vpY0 = vpYCenter - offsetY - fabsf(vpYScale); // Need to account for sign of Y
float vpY0 = vpYCenter - offsetY - fabsf(vpYScale);
gstate_c.vpWidth = vpXScale * 2.0f;
gstate_c.vpHeight = vpYScale * 2.0f;

View File

@ -784,7 +784,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
// This means that to get the analogue glViewport we must:
float vpX0 = vpXCenter - offsetX - fabsf(vpXScale);
float vpY0 = vpYCenter - offsetY + fabsf(vpYScale);
float vpY0 = vpYCenter - offsetY + fabsf(vpYScale); // Need to account for sign of Y
gstate_c.vpWidth = vpXScale * 2.0f;
gstate_c.vpHeight = -vpYScale * 2.0f;