diff options
-rw-r--r-- | src/GipfelWidget.cxx | 9 | ||||
-rw-r--r-- | src/gipfel.cxx | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index 5b0d5b5..737238f 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -1,5 +1,5 @@ // -// "$Id: GipfelWidget.cxx,v 1.23 2005/05/05 17:37:37 hofmann Exp $" +// "$Id: GipfelWidget.cxx,v 1.24 2005/05/05 19:56:38 hofmann Exp $" // // PSEditWidget routines. // @@ -112,8 +112,13 @@ GipfelWidget::draw() { for (i=0; i<mnts->get_num(); i++) { m = mnts->get(i); - if (m == cur_mountain) { + if (m == m1 || m == m2) { fl_color(FL_RED); + fl_polygon(center_x + m->x + x(), center_y + m->y + y() - 10, + center_x + m->x + x(), center_y + m->y + y() - 20, + center_x + m->x + x() + 10, center_y + m->y + y() - 15); + fl_yxline(center_x + m->x + x(), center_y + m->y + y(), + center_y + m->y + y() - 10); } else { fl_color(FL_BLACK); } diff --git a/src/gipfel.cxx b/src/gipfel.cxx index cc04a60..87689a3 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -1,5 +1,5 @@ // -// "$Id: gipfel.cxx,v 1.18 2005/05/05 19:44:08 hofmann Exp $" +// "$Id: gipfel.cxx,v 1.19 2005/05/05 19:56:38 hofmann Exp $" // // flpsed program. // @@ -40,6 +40,7 @@ #include <FL/Fl_Int_Input.H> #include <FL/Fl_Menu_Bar.H> #include <FL/Fl_Menu_Item.H> +#include <FL/Fl_Value_Slider.H> #include "GipfelWidget.H" @@ -177,7 +178,7 @@ int main(int argc, char** argv) { m = new Fl_Menu_Bar(0, 0, 800, 30); m->menu(menuitems); - s_center = new Fl_Slider(50, 30, 750, 15, "direction"); + s_center = new Fl_Value_Slider(50, 30, 650, 15, "direction"); s_center->type(1); s_center->box(FL_THIN_DOWN_BOX); s_center->labelsize(10); |