diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-08 20:03:06 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-08 20:03:06 +0200 |
commit | e0b97a5b06578797a8a65796bc694e8048559a10 (patch) | |
tree | 50fd1e48b1223bae332ec651647f39a97022810f /src/Stitch.cxx | |
parent | 029db5ead7c6f95f788047af2446cf302556f9d5 (diff) |
cleanup
Diffstat (limited to 'src/Stitch.cxx')
-rw-r--r-- | src/Stitch.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Stitch.cxx b/src/Stitch.cxx index 3aefb20..251323d 100644 --- a/src/Stitch.cxx +++ b/src/Stitch.cxx @@ -125,9 +125,9 @@ Stitch::resample(GipfelWidget::sample_mode_t m, g = std::max(std::min(g, MAX_VALUE), 0); b = std::max(std::min(b, MAX_VALUE), 0); - if (single_images[i]) { + if (single_images[i]) single_images[i]->set_pixel(x, r, g, b); - } + if (!merged_pixel_set && merged_image) { merged_image->set_pixel(x, r, g, b); merged_pixel_set++; @@ -135,13 +135,13 @@ Stitch::resample(GipfelWidget::sample_mode_t m, } } } - if (merged_image) { + + if (merged_image) merged_image->next_line(); - } + for (int i=0; i<MAX_PICS; i++) { - if (single_images[i]) { + if (single_images[i]) single_images[i]->next_line(); - } } } |