Skip to content
Snippets Groups Projects
Commit 1f56e7ac authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't add hot-spots for users of terminals without mouse support

This eliminates some link-list management and the debug-level log message "Scrolled x mouse hot-spots" for non-mouse-enabled user terminals.
parent 9828d56c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -572,6 +572,8 @@ void sbbs_t::set_mouse(long flags)
struct mouse_hotspot* sbbs_t::add_hotspot(struct mouse_hotspot* spot)
{
if(!term_supports(MOUSE))
return NULL;
if(spot->y < 0)
spot->y = row;
if(spot->minx < 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment