Menus/Replay: do not draw border in non-green resolutions

The border draws over the buttons, which makes the menu
practically unusable. Not drawing the border is the
simplest thing I could do to fix this.
This commit is contained in:
James R 2024-01-28 17:41:23 -08:00
parent 50781ded69
commit e0583a19b3

View file

@ -472,7 +472,8 @@ void M_DrawMenuForeground(void)
}
// draw non-green resolution border
if ((vid.width % BASEVIDWIDTH != 0) || (vid.height % BASEVIDHEIGHT != 0))
if (currentMenu != &PAUSE_PlaybackMenuDef && // this obscures replay menu and I want to put in minimal effort to fix that
((vid.width % BASEVIDWIDTH != 0) || (vid.height % BASEVIDHEIGHT != 0)))
{
V_DrawFixedPatch(0, 0, FRACUNIT, 0, W_CachePatchName("WEIRDRES", PU_CACHE), NULL);
}