From d8e56b177be463551ebb4f90b66aa728d68d2f97 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 3 Jul 2008 17:53:00 +0200 Subject: optimize stitch preview --- src/Stitch.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Stitch.cxx b/src/Stitch.cxx index e4f3d60..65a838e 100644 --- a/src/Stitch.cxx +++ b/src/Stitch.cxx @@ -116,6 +116,9 @@ Stitch::resample(GipfelWidget::sample_mode_t m, a_view = view_start + x * step_view; merged_pixel_set = 0; for (int i = 0; i < num_pics; i++) { + if (merged_pixel_set && !single_images[i]) + continue; + if (gipf[i]->get_pixel(m, a_view, a_nick, &r, &g, &b) == 0) { -- cgit v1.2.3