From 54621d20d2fab3bbe85734eaec3527bd2b4b6948 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Fri, 11 Oct 2019 21:14:30 +0900 Subject: [PATCH] Add widescreen aspect correction --- source/exhumed/src/view.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/exhumed/src/view.cpp b/source/exhumed/src/view.cpp index 3386620b1..39d5c6e47 100644 --- a/source/exhumed/src/view.cpp +++ b/source/exhumed/src/view.cpp @@ -415,10 +415,24 @@ void DrawView() if (nFreeze != 3) { + int const viewingRange = viewingrange; + + if (r_usenewaspect) + { + newaspect_enable = 1; + videoSetCorrectedAspect(); + } + drawrooms(nCamerax, nCameray, viewz, nCameraa, nCamerapan, nSector); analyzesprites(); renderDrawMasks(); + if (r_usenewaspect) + { + newaspect_enable = 0; + renderSetAspect(viewingRange, tabledivide32_noinline(65536 * ydim * 8, xdim * 5)); + } + if (nFreeze) { nSnakeCam = -1;