avoid menu cursor being drawn off-screen

This commit is contained in:
Fabian Greffrath 2022-06-17 17:16:00 +02:00
parent 29b2b9ba67
commit ec9aa62bab

View File

@ -2363,7 +2363,8 @@ void M_DrawSetting(setup_menu_t* s)
for (i = 0 ; i < char_width ; i++)
colorblock[i] = PAL_BLACK;
V_DrawBlock(x+cursor_start-1+WIDESCREENDELTA,y+7,0,char_width,1,colorblock);
if (x+cursor_start-1+WIDESCREENDELTA+char_width < SCREENWIDTH)
V_DrawBlock(x+cursor_start-1+WIDESCREENDELTA,y+7,0,char_width,1,colorblock);
}
// Draw the setting for the item