mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-13 13:13:36 +00:00
Oops, left the comment in the wrong one.
This commit is contained in:
parent
cee2827172
commit
67a54504c7
@ -720,7 +720,7 @@ void TransformDrawEngineDX9::ApplyDrawState(int prim) {
|
|||||||
|
|
||||||
// This means that to get the analogue glViewport we must:
|
// This means that to get the analogue glViewport we must:
|
||||||
float vpX0 = vpXCenter - offsetX - fabsf(vpXScale);
|
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.vpWidth = vpXScale * 2.0f;
|
||||||
gstate_c.vpHeight = vpYScale * 2.0f;
|
gstate_c.vpHeight = vpYScale * 2.0f;
|
||||||
|
|
||||||
|
@ -784,7 +784,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
|||||||
|
|
||||||
// This means that to get the analogue glViewport we must:
|
// This means that to get the analogue glViewport we must:
|
||||||
float vpX0 = vpXCenter - offsetX - fabsf(vpXScale);
|
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.vpWidth = vpXScale * 2.0f;
|
||||||
gstate_c.vpHeight = -vpYScale * 2.0f;
|
gstate_c.vpHeight = -vpYScale * 2.0f;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user