diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-17 14:56:02 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-17 14:56:02 +0100 |
commit | 528a1ebe1491d9f9d55e0d53d11a16729b2bd39b (patch) | |
tree | a09ee54c6e9e62e73f6c3c255362d34e66aec22a /src | |
parent | d8ba88bbfea31f2347abc29036859fcdcdcda76b (diff) |
make marked hills green if there are more than 3 (calibration)
Diffstat (limited to 'src')
-rw-r--r-- | src/GipfelWidget.cxx | 8 |
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 { |