mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-27 06:54:23 -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++)
|
for (i = 0 ; i < char_width ; i++)
|
||||||
colorblock[i] = PAL_BLACK;
|
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
|
// Draw the setting for the item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user