0
0
Fork 0
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:
Dileep V. Reddy 2024-10-08 10:31:50 -06:00 committed by Rachael Alexanderson
parent 23c97b5a73
commit f9a59a989b

View file

@ -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 );
}