about summary refs log tree commit diff stats
path: root/src/tracker_panel.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-26 14:05:29 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-26 14:05:29 -0500
commit2adce1795211fd0a42c3b4e03ab35a90bb01bccf (patch)
tree7fda2f874f0653e4c74edaaf1547fe9802b2005a /src/tracker_panel.cpp
parent7fc0e0f50ae961efbe0cac1032b03a42d41d87d5 (diff)
downloadlingo-ap-tracker-2adce1795211fd0a42c3b4e03ab35a90bb01bccf.tar.gz
lingo-ap-tracker-2adce1795211fd0a42c3b4e03ab35a90bb01bccf.tar.bz2
lingo-ap-tracker-2adce1795211fd0a42c3b4e03ab35a90bb01bccf.zip
Stop relying on correctly set working directory
Diffstat (limited to 'src/tracker_panel.cpp')
-rw-r--r--src/tracker_panel.cpp4
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;
11constexpr int AREA_EFFECTIVE_SIZE = AREA_ACTUAL_SIZE + AREA_BORDER_SIZE * 2; 12constexpr int AREA_EFFECTIVE_SIZE = AREA_ACTUAL_SIZE + AREA_BORDER_SIZE * 2;
12 13
13TrackerPanel::TrackerPanel(wxWindow *parent) : wxPanel(parent, wxID_ANY) { 14TrackerPanel::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 }