Add widescreen aspect correction

This commit is contained in:
nukeykt 2019-10-11 21:14:30 +09:00 committed by Christoph Oelckers
parent 1dda8027ab
commit 54621d20d2

View file

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