Table range calculator closes with the right button; no frame in the panorama

- The Von/Bis calculator of the league table is left with the right
  mouse button (as the Toto calculator), restoring the backdrop.
- The stadium panorama draws no hover frame (the original draws none);
  the yellow frames stay on the main page (seat blocks, investments).

Refs #64, #66.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-11-04 23:02:41 +01:00
1 parent 81ae6ad236
commit f12857414e
3 files changed
+14 -7

No files matched your search

+8
View File
@@ -186,6 +186,14 @@ void test_toto_source_calculator(const std::filesystem::path& data) {
check(cancelled_result && cancelled_result->result == TableRangeDialogResult::cancel,
"Toto calculator cancel has no accepted payment value");
LeagueTableRangeDialog by_mouse(data, backdrop, TotoStakeDialogProfile{TableRangeTextMode::flat});
(void)by_mouse.render(); (void)by_mouse.after_present();
check(by_mouse.pointer_down(10, 10, true), "the right button is consumed by the calculator");
check(by_mouse.render().pixels == backdrop.pixels, "the right button restores the owned backdrop");
const auto by_mouse_result = by_mouse.after_present();
check(by_mouse_result && by_mouse_result->result == TableRangeDialogResult::cancel,
"the right button closes the calculator as a cancel");
TableRangeDialogProfile table_profile;
table_profile.text_mode = TableRangeTextMode::flat;
LeagueTableRangeDialog table(data, backdrop, table_profile);