mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-04-20 09:28:52 +00:00
Orthographic projection Widescreen aspect ratio horizontal clipping fixed. This one-line change only affects ortho viewpoints. Easy to verify in windowed mode.
This commit is contained in:
parent
23c97b5a73
commit
f9a59a989b
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ angle_t Clipper::PointToPseudoOrthoAngle(double x, double y)
|
|||
angle_t af = viewpoint->FrustAngle;
|
||||
double xproj = disp.XY().Length() * deltaangle(disp.Angle(), viewpoint->Angles.Yaw).Sin();
|
||||
xproj *= viewpoint->ScreenProj;
|
||||
if (fabs(xproj) < 2.0)
|
||||
if (fabs(xproj) < r_viewwindow.WidescreenRatio*1.13) // 2.0)
|
||||
{
|
||||
return AngleToPseudo( viewpoint->Angles.Yaw.BAMs() - xproj * 0.5 * af );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue