From 42f03528da65b939579b25cbb8618d190b96dd9c Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 13 Apr 2005 13:36:36 +0000 Subject: Empty log message --- src/gipfel.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gipfel.cxx') diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 70657f3..e72703d 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -1,5 +1,5 @@ // -// "$Id: gipfel.cxx,v 1.1 2005/04/12 20:34:41 hofmann Exp $" +// "$Id: gipfel.cxx,v 1.2 2005/04/13 15:36:36 hofmann Exp $" // // flpsed program. // @@ -40,9 +40,8 @@ #include #include #include -#include -#include +#include "GipfelWidget.H" char *filename; @@ -120,16 +119,16 @@ int main(int argc, char** argv) { filename = my_argv[0]; } - fl_register_images(); + win = new Fl_Window(600,700); m = new Fl_Menu_Bar(0, 0, 600, 30); m->menu(menuitems); scroll = new Fl_Scroll(0, 30, win->w(), win->h()-30); fprintf(stderr, "%s\n", filename); + + GipfelWidget *gipf = new GipfelWidget(0,30,500,500); - Fl_Image *img = new Fl_JPEG_Image(filename); - Fl_Box *b = new Fl_Box(0, 0, img->w(), img->h()); - b->image(img); + gipf->load(filename); scroll->end(); @@ -137,6 +136,7 @@ int main(int argc, char** argv) { win->end(); win->show(1, argv); + gipf->redraw_overlay(); return Fl::run(); } -- cgit v1.2.3