summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main-menu.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main-menu.c b/src/main-menu.c
index 75d2ce0..93c816d 100644
--- a/src/main-menu.c
+++ b/src/main-menu.c
@@ -345,6 +345,16 @@ db_main_menu(void)
}
}
break;
+ case SDL_MOUSEBUTTONUP:
+ if (event.button.button != SDL_BUTTON_LEFT) {
+ break;
+ }
+ if (db_pt_in_rect(event.button.x,
+ event.button.y,
+ &active->rect)) {
+ active->action(active->user_data);
+ }
+ break;
default:
break;
}