mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
SW: Get widescreen aspect working
git-svn-id: https://svn.eduke32.com/eduke32@8346 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
68668058c9
commit
820bd2545c
1 changed files with 14 additions and 0 deletions
|
@ -2198,6 +2198,8 @@ drawscreen(PLAYERp pp)
|
|||
static short lv_sectnum = -1;
|
||||
static int lv_x, lv_y, lv_z;
|
||||
|
||||
int const viewingRange = viewingrange;
|
||||
|
||||
if (HelpInputMode)
|
||||
{
|
||||
renderFlushPerms();
|
||||
|
@ -2363,6 +2365,12 @@ drawscreen(PLAYERp pp)
|
|||
thoriz = min(thoriz, PLAYER_HORIZ_MAX);
|
||||
}
|
||||
|
||||
if (r_usenewaspect)
|
||||
{
|
||||
newaspect_enable = 1;
|
||||
videoSetCorrectedAspect();
|
||||
}
|
||||
|
||||
if (FAF_DebugView)
|
||||
videoClearViewableArea(255L);
|
||||
|
||||
|
@ -2387,6 +2395,12 @@ drawscreen(PLAYERp pp)
|
|||
post_analyzesprites();
|
||||
renderDrawMasks();
|
||||
|
||||
if (r_usenewaspect)
|
||||
{
|
||||
newaspect_enable = 0;
|
||||
renderSetAspect(viewingRange, tabledivide32_noinline(65536 * ydim * 8, xdim * 5));
|
||||
}
|
||||
|
||||
UpdatePanel();
|
||||
|
||||
#define SLIME 2305
|
||||
|
|
Loading…
Reference in a new issue