From 9d11c7dfb111fcdc3922f96aad8e72e3f06f1c5c Mon Sep 17 00:00:00 2001 From: Evan Ramos Date: Tue, 18 Feb 2020 23:34:57 -0600 Subject: [PATCH] SW: Add FOV support. --- source/sw/src/draw.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/sw/src/draw.cpp b/source/sw/src/draw.cpp index 454d9e55e..7fc753a9b 100644 --- a/source/sw/src/draw.cpp +++ b/source/sw/src/draw.cpp @@ -2162,6 +2162,8 @@ drawscreen(PLAYERp pp) videoSetCorrectedAspect(); } + renderSetAspect(Blrintf(float(viewingrange) * tanf(r_fov * (fPI/360.f))), yxaspect); + if (FAF_DebugView) videoClearViewableArea(255);