From 528a1ebe1491d9f9d55e0d53d11a16729b2bd39b Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 17 Dec 2006 14:56:02 +0100 Subject: make marked hills green if there are more than 3 (calibration) --- src/GipfelWidget.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3