summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-17 14:56:02 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-17 14:56:02 +0100
commit528a1ebe1491d9f9d55e0d53d11a16729b2bd39b (patch)
treea09ee54c6e9e62e73f6c3c255362d34e66aec22a /src
parentd8ba88bbfea31f2347abc29036859fcdcdcda76b (diff)
make marked hills green if there are more than 3 (calibration)
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 3b70b3a..e8ca448 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -237,8 +237,12 @@ GipfelWidget::draw() {
}
if (known_hills->contains(m)) {
- fl_color(FL_RED);
- draw_flag(m_x, m_y, "1");
+ if (known_hills->get_num() > 3) {
+ fl_color(FL_GREEN);
+ } else {
+ fl_color(FL_RED);
+ }
+ draw_flag(m_x, m_y, "");
} else if (m->flags & Hill::HIDDEN) {
fl_color(FL_BLUE);
} else {