summaryrefslogtreecommitdiff
path: root/src/Stitch.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-18 18:26:41 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-18 18:26:41 +0100
commitfaf5dff31fcbafb5cfa8575b85ffaf2408ff5d39 (patch)
treefa0ccd1aadedca0dd9d6d4711e7deccee6bc5a7e /src/Stitch.cxx
parenta432b9670a3df4ddadc6979601c37204aab927cd (diff)
make bilinear resampling optional
Diffstat (limited to 'src/Stitch.cxx')
-rw-r--r--src/Stitch.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Stitch.cxx b/src/Stitch.cxx
index 6fd0d84..f21c140 100644
--- a/src/Stitch.cxx
+++ b/src/Stitch.cxx
@@ -78,8 +78,8 @@ Stitch::set_output(const char *file, OutputImage *img) {
}
int
-Stitch::resample(int w, int h,
- double view_start, double view_end) {
+Stitch::resample(GipfelWidget::sample_mode_t m,
+ int w, int h, double view_start, double view_end) {
view_start = view_start * deg2rad;
view_end = view_end * deg2rad;
@@ -109,7 +109,8 @@ Stitch::resample(int w, int h,
for (int i=0; i<MAX_PICS; i++) {
if (gipf[i] == NULL) {
break;
- } else if (gipf[i]->get_pixel(a_view, a_nick, &r, &g, &b)==0) {
+ } else if (gipf[i]->get_pixel(m, a_view, a_nick,
+ &r, &g, &b) == 0) {
if (single_images[i]) {
single_images[i]->set_pixel(x, r, g, b);
}