diff options
Diffstat (limited to 'src/tracker_panel.cpp')
| -rw-r--r-- | src/tracker_panel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 5e035af..81cb595 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | #include "ap_state.h" | 3 | #include "ap_state.h" |
| 4 | #include "area_popup.h" | 4 | #include "area_popup.h" |
| 5 | #include "game_data.h" | 5 | #include "game_data.h" |
| 6 | #include "global.h" | ||
| 6 | #include "tracker_config.h" | 7 | #include "tracker_config.h" |
| 7 | #include "tracker_state.h" | 8 | #include "tracker_state.h" |
| 8 | 9 | ||
| @@ -11,7 +12,8 @@ constexpr int AREA_BORDER_SIZE = 5; | |||
| 11 | constexpr int AREA_EFFECTIVE_SIZE = AREA_ACTUAL_SIZE + AREA_BORDER_SIZE * 2; | 12 | constexpr int AREA_EFFECTIVE_SIZE = AREA_ACTUAL_SIZE + AREA_BORDER_SIZE * 2; |
| 12 | 13 | ||
| 13 | TrackerPanel::TrackerPanel(wxWindow *parent) : wxPanel(parent, wxID_ANY) { | 14 | TrackerPanel::TrackerPanel(wxWindow *parent) : wxPanel(parent, wxID_ANY) { |
| 14 | map_image_ = wxImage("assets/lingo_map.png", wxBITMAP_TYPE_PNG); | 15 | map_image_ = wxImage(GetAbsolutePath("assets/lingo_map.png").c_str(), |
| 16 | wxBITMAP_TYPE_PNG); | ||
| 15 | if (!map_image_.IsOk()) { | 17 | if (!map_image_.IsOk()) { |
| 16 | return; | 18 | return; |
| 17 | } | 19 | } |
