mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Correct gSPModifyVertex for case when widescreen hack enabled.
Widescreen hack breaks Disney's Tarzan amusingly #1501 (problem with 2D backgrounds in widescreen mode still exists and hardly can be fixed)
This commit is contained in:
parent
29c9a778d9
commit
038c74af12
|
@ -1635,6 +1635,14 @@ void gSPModifyVertex( u32 _vtx, u32 _where, u32 _val )
|
|||
if (gSP.viewport.vscale[0] < 0)
|
||||
vtx0.x = -vtx0.x;
|
||||
vtx0.x *= vtx0.w;
|
||||
|
||||
if (dwnd().isAdjustScreen()) {
|
||||
const f32 adjustScale = dwnd().getAdjustScale();
|
||||
vtx0.x *= adjustScale;
|
||||
if (gSP.matrix.projection[3][2] == -1.f)
|
||||
vtx0.w *= adjustScale;
|
||||
}
|
||||
|
||||
vtx0.y = -(vtx0.y - gSP.viewport.vtrans[1]) / gSP.viewport.vscale[1];
|
||||
if (gSP.viewport.vscale[1] < 0)
|
||||
vtx0.y = -vtx0.y;
|
||||
|
|
Loading…
Reference in New Issue
Block a user