Menu error with high mouse sensitivity

In Doom, the maximum mouse sensitivity that can be set with the slider in the in-game options menu is 9. By manually editing the variable mouse_sensitivity in default.cfg with a text editor, it can be set to a higher value. However, if it is set to more than 30, Doom will crash and display "Bad V_DrawPatchDirect" when the options menu is accessed.

The bug is caused by the slider in the menu. The slider's horizontal position on the screen is determined by the mouse sensitivity; if this parameter is larger than 9, the slider will be displayed outside its bar, to the right. If the sensitivity is larger than 30, the slider's horizontal position is so high that Doom attempts to draw it outside the screen boundaries, resulting in the error.

The error is retained in Chocolate Doom but fixed in most ports.