a little better solution still bad lmao

This commit is contained in:
Alug committed 2024-01-26 00:04:42 +01:00
1 parent 0e344a7e02
commit 90f06a3289
1 file changed
+16 -5
+16 -5
View File
@@ -248,11 +248,22 @@ void SCR_Recalc(void)
// scale 1,2,3 times in x and y the patches for the menus and overlays...
// calculated once and for all, used by routines in v_video.c
vid.dupx = vid.width / BASEVIDWIDTH / 1.2;
vid.dupy = vid.height / BASEVIDHEIGHT / 1.2;
vid.dupx = vid.dupy = (vid.dupx < vid.dupy ? vid.dupx : vid.dupy);
vid.fdupx = FixedDiv(vid.width*FRACUNIT, BASEVIDWIDTH*FRACUNIT) / 1.2;
vid.fdupy = FixedDiv(vid.height*FRACUNIT, BASEVIDHEIGHT*FRACUNIT) / 1.2;
if ((vid.width > 720) && (vid.height > 1280)) // i hate the scaling above 720p making everything comically large
{
vid.dupx = (vid.width / BASEVIDWIDTH) / 1.15;
vid.dupy = (vid.height / BASEVIDHEIGHT) / 1.15;
vid.dupx = vid.dupy = (vid.dupx < vid.dupy ? vid.dupx : vid.dupy);
vid.fdupx = FixedDiv(vid.width*FRACUNIT, BASEVIDWIDTH*FRACUNIT) / 1.15;
vid.fdupy = FixedDiv(vid.height*FRACUNIT, BASEVIDHEIGHT*FRACUNIT) / 1.15;
}
else
{
vid.dupx = vid.width / BASEVIDWIDTH;
vid.dupy = vid.height / BASEVIDHEIGHT;
vid.dupx = vid.dupy = (vid.dupx < vid.dupy ? vid.dupx : vid.dupy);
vid.fdupx = FixedDiv(vid.width*FRACUNIT, BASEVIDWIDTH*FRACUNIT);
vid.fdupy = FixedDiv(vid.height*FRACUNIT, BASEVIDHEIGHT*FRACUNIT);
}
#ifdef HWRENDER
//if (rendermode != render_opengl && rendermode != render_none) // This was just placing it incorrectly at non aspect correct resolutions in opengl