diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/GipfelWidget.H | 1 | ||||
-rw-r--r-- | src/GipfelWidget.cxx | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/GipfelWidget.H b/src/GipfelWidget.H index fa82803..3671a87 100644 --- a/src/GipfelWidget.H +++ b/src/GipfelWidget.H @@ -16,7 +16,6 @@ class GipfelWidget : public Fl_Widget { private: Fl_Image *img; Hill *cur_mountain; - Hills *marker; Hills *track_points; Hills *known_hills; Panorama *pan; diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index 9d43f7b..a8efa97 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -45,16 +45,11 @@ GipfelWidget::GipfelWidget(int X,int Y,int W, int H): Fl_Widget(X, Y, W, H) { pan = new Panorama(); cur_mountain = NULL; mb = NULL; - marker = new Hills(); known_hills = new Hills(); img_file = NULL; track_width = 200.0; show_hidden = 0; md = new ImageMetaData(); - - for (i=0; i<=3; i++) { - marker->add(new Hill(i * 10, 0)); - } track_points = NULL; fl_register_images(); } @@ -406,17 +401,6 @@ GipfelWidget::toggle_known_mountain(int m_x, int m_y) { } } - for (i=0; i<marker->get_num(); i++) { - m = marker->get(i); - - if (m_x - center_x >= m->x - 2 && m_x - center_x < m->x + 2 && - m_y - center_y >= m->y - 2 && m_y - center_y < m->y + 2) { - cur_mountain = m; - redraw(); - return 0; - } - } - cur_mountain = NULL; redraw(); return 1; |