diff options
Diffstat (limited to 'src/area_popup.cpp')
-rw-r--r-- | src/area_popup.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/area_popup.cpp b/src/area_popup.cpp index 8d6487e..467a2bc 100644 --- a/src/area_popup.cpp +++ b/src/area_popup.cpp | |||
@@ -79,7 +79,7 @@ void AreaPopup::UpdateIndicators() { | |||
79 | if (AP_IsPaintingShuffle() && !tracker_panel->IsPanelsMode()) { | 79 | if (AP_IsPaintingShuffle() && !tracker_panel->IsPanelsMode()) { |
80 | for (int painting_id : map_area.paintings) { | 80 | for (int painting_id : map_area.paintings) { |
81 | const PaintingExit& painting = GD_GetPaintingExit(painting_id); | 81 | const PaintingExit& painting = GD_GetPaintingExit(painting_id); |
82 | wxSize item_extent = mem_dc.GetTextExtent(painting.internal_id); // TODO: Replace with a friendly name. | 82 | wxSize item_extent = mem_dc.GetTextExtent(painting.display_name); |
83 | int item_height = std::max(32, item_extent.GetHeight()) + 10; | 83 | int item_height = std::max(32, item_extent.GetHeight()) + 10; |
84 | acc_height += item_height; | 84 | acc_height += item_height; |
85 | 85 | ||
@@ -157,8 +157,8 @@ void AreaPopup::UpdateIndicators() { | |||
157 | wxBitmap* eye_ptr = checked ? &checked_eye_ : &unchecked_eye_; | 157 | wxBitmap* eye_ptr = checked ? &checked_eye_ : &unchecked_eye_; |
158 | mem_dc.DrawBitmap(*eye_ptr, {10, cur_height}); | 158 | mem_dc.DrawBitmap(*eye_ptr, {10, cur_height}); |
159 | 159 | ||
160 | wxSize item_extent = mem_dc.GetTextExtent(painting.internal_id); // TODO: Replace with friendly name. | 160 | wxSize item_extent = mem_dc.GetTextExtent(painting.display_name); |
161 | mem_dc.DrawText(painting.internal_id, | 161 | mem_dc.DrawText(painting.display_name, |
162 | {10 + 32 + 10, | 162 | {10 + 32 + 10, |
163 | cur_height + (32 - mem_dc.GetFontMetrics().height) / 2}); | 163 | cur_height + (32 - mem_dc.GetFontMetrics().height) / 2}); |
164 | 164 | ||