diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 14:18:22 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 14:18:22 -0400 |
commit | 973179a841e98c55a56a977634891ba592d2e2be (patch) | |
tree | c291e14185b266473b58a9c1c384ac26d87fee47 /src | |
parent | 3d7d4b216d630ec65bc008cd9d7979f8de191825 (diff) | |
download | lingo-ap-tracker-973179a841e98c55a56a977634891ba592d2e2be.tar.gz lingo-ap-tracker-973179a841e98c55a56a977634891ba592d2e2be.tar.bz2 lingo-ap-tracker-973179a841e98c55a56a977634891ba592d2e2be.zip |
Added crosshair cursor while scrolling subway map
Diffstat (limited to 'src')
-rw-r--r-- | src/subway_map.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/subway_map.cpp b/src/subway_map.cpp index 100d351..0beef76 100644 --- a/src/subway_map.cpp +++ b/src/subway_map.cpp | |||
@@ -423,6 +423,8 @@ void SubwayMap::OnMouseClick(wxMouseEvent &event) { | |||
423 | scroll_mode_ = false; | 423 | scroll_mode_ = false; |
424 | 424 | ||
425 | SetScrollSpeed(0, 0); | 425 | SetScrollSpeed(0, 0); |
426 | |||
427 | SetCursor(wxCURSOR_ARROW); | ||
426 | } else if (event.GetPosition().x < GetSize().GetWidth() / 6 || | 428 | } else if (event.GetPosition().x < GetSize().GetWidth() / 6 || |
427 | event.GetPosition().x > 5 * GetSize().GetWidth() / 6 || | 429 | event.GetPosition().x > 5 * GetSize().GetWidth() / 6 || |
428 | event.GetPosition().y < GetSize().GetHeight() / 6 || | 430 | event.GetPosition().y < GetSize().GetHeight() / 6 || |
@@ -430,6 +432,8 @@ void SubwayMap::OnMouseClick(wxMouseEvent &event) { | |||
430 | scroll_mode_ = true; | 432 | scroll_mode_ = true; |
431 | 433 | ||
432 | EvaluateScroll(event.GetPosition()); | 434 | EvaluateScroll(event.GetPosition()); |
435 | |||
436 | SetCursor(wxCURSOR_CROSS); | ||
433 | } | 437 | } |
434 | } | 438 | } |
435 | 439 | ||