From d47080e941184c48e76f535111a4657639d1a428 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 13 Mar 2007 20:12:51 +0100 Subject: gsl based version --- src/gipfel.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/gipfel.cxx') diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 3862761..584ae15 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -585,10 +585,6 @@ stitch(GipfelWidget::sample_mode_t m, st->resample(m, stitch_w, stitch_h, from, to); - } else if (type = STITCH_VIGNETTE_CALIB) { - - st->vignette_calib(m, stitch_w, stitch_h, from, to); - } else { win = new Fl_Window(0,0, stitch_w, stitch_h); scroll = new Fl_Scroll(0, 0, win->w(), win->h()); @@ -598,7 +594,13 @@ stitch(GipfelWidget::sample_mode_t m, win->resizable(scroll); win->show(0, argv); st->set_output((OutputImage*) img); - st->resample(m, stitch_w, stitch_h, from, to); + + if (type == STITCH_VIGNETTE_CALIB) { + st->vignette_calib(m, stitch_w, stitch_h, from, to); + } else { + st->resample(m, stitch_w, stitch_h, from, to); + } + img->redraw(); Fl::run(); } -- cgit v1.2.3