Skip to content

Commit

Permalink
Give screen size slider extra notch in options menu
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 5, 2024
1 parent b2c33a6 commit 7cd3eb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2064,12 +2064,12 @@ static void M_DrawOptions(void)
}

dot = (float)(r_screensize + (r_screensize < r_screensize_max - 1 ? 0 :
(r_screensize == r_screensize_max - 1 ? vid_widescreen : 1 + !r_hud)));
(r_screensize == r_screensize_max - 1 ? vid_widescreen : 1 + (int)r_althud + !r_hud)));
OptionsMenu[option_empty1].sliderx = MAXWIDESCREENDELTA
+ OptionsDef.x - 1 + 8 + (int)(dot * 6.54f) + 2;
+ OptionsDef.x - 1 + 8 + (int)(dot * 5.9f) + 2;
OptionsMenu[option_empty1].width = 16 * 8 + 12;
M_DrawSlider(OptionsDef.x - 1, OptionsDef.y + 16 * (scrnsize + 1) + OFFSET + !hacx,
9, 15, dot, 6.54f, 8, (itemon == scrnsize || itemon == option_empty1));
9, 15, dot, 5.9f, 8, (itemon == scrnsize || itemon == option_empty1));

if (usingcontroller && (!M_MSENS || DBIGFONT))
{
Expand Down

0 comments on commit 7cd3eb0

Please sign in to comment.