mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 14:33:46 -04:00
avoid menu cursor being drawn off-screen
This commit is contained in:
parent
29b2b9ba67
commit
ec9aa62bab
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user