about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/area_popup.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/area_popup.cpp b/src/area_popup.cpp index 58d8897..ca3b352 100644 --- a/src/area_popup.cpp +++ b/src/area_popup.cpp
@@ -126,15 +126,15 @@ void AreaPopup::UpdateIndicators() {
126 if (AP_IsPaintingShuffle()) { 126 if (AP_IsPaintingShuffle()) {
127 for (int painting_id : map_area.paintings) { 127 for (int painting_id : map_area.paintings) {
128 const PaintingExit& painting = GD_GetPaintingExit(painting_id); 128 const PaintingExit& painting = GD_GetPaintingExit(painting_id);
129 bool checked = AP_IsPaintingChecked(painting.internal_id);
130 wxBitmap* eye_ptr = checked ? &checked_eye_ : &unchecked_eye_;
131
132 mem_dc.DrawBitmap(*eye_ptr, {10, cur_height});
133 129
134 bool reachable = IsPaintingReachable(painting_id); 130 bool reachable = IsPaintingReachable(painting_id);
135 const wxColour* text_color = reachable ? wxWHITE : wxRED; 131 const wxColour* text_color = reachable ? wxWHITE : wxRED;
136 mem_dc.SetTextForeground(*text_color); 132 mem_dc.SetTextForeground(*text_color);
137 133
134 bool checked = reachable && AP_IsPaintingChecked(painting.internal_id);
135 wxBitmap* eye_ptr = checked ? &checked_eye_ : &unchecked_eye_;
136 mem_dc.DrawBitmap(*eye_ptr, {10, cur_height});
137
138 wxSize item_extent = mem_dc.GetTextExtent(painting.internal_id); // TODO: Replace with friendly name. 138 wxSize item_extent = mem_dc.GetTextExtent(painting.internal_id); // TODO: Replace with friendly name.
139 mem_dc.DrawText(painting.internal_id, 139 mem_dc.DrawText(painting.internal_id,
140 {10 + 32 + 10, 140 {10 + 32 + 10,