SW: Get widescreen aspect working

git-svn-id: https://svn.eduke32.com/eduke32@8346 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-12-03 09:44:42 +00:00 committed by Christoph Oelckers
parent 68668058c9
commit 820bd2545c

View file

@ -2198,6 +2198,8 @@ drawscreen(PLAYERp pp)
static short lv_sectnum = -1; static short lv_sectnum = -1;
static int lv_x, lv_y, lv_z; static int lv_x, lv_y, lv_z;
int const viewingRange = viewingrange;
if (HelpInputMode) if (HelpInputMode)
{ {
renderFlushPerms(); renderFlushPerms();
@ -2363,6 +2365,12 @@ drawscreen(PLAYERp pp)
thoriz = min(thoriz, PLAYER_HORIZ_MAX); thoriz = min(thoriz, PLAYER_HORIZ_MAX);
} }
if (r_usenewaspect)
{
newaspect_enable = 1;
videoSetCorrectedAspect();
}
if (FAF_DebugView) if (FAF_DebugView)
videoClearViewableArea(255L); videoClearViewableArea(255L);
@ -2387,6 +2395,12 @@ drawscreen(PLAYERp pp)
post_analyzesprites(); post_analyzesprites();
renderDrawMasks(); renderDrawMasks();
if (r_usenewaspect)
{
newaspect_enable = 0;
renderSetAspect(viewingRange, tabledivide32_noinline(65536 * ydim * 8, xdim * 5));
}
UpdatePanel(); UpdatePanel();
#define SLIME 2305 #define SLIME 2305