diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-01-17 10:01:53 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-01-17 10:01:53 +0100 |
commit | a1da5cacc005ff26d3d711fcef13c5f013258b8a (patch) | |
tree | a645506a8beb29ee324798e1d1913414f2d5a805 /src | |
parent | 0a3622f770ab24251bfb0e9f6d7927429323d07f (diff) | |
parent | 7b58a6debdec0d9d9309d63154c0016e66757982 (diff) |
merge with main
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; |