summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-03-18 13:29:24 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-03-18 13:29:24 +0100
commitc169dc1ef87458680a71c5616d9f930e2e4560e0 (patch)
treed808d02e00a8a104d1fb0f8a8d62cb59c036ea7e /src
parentd7696768c7c89442e4a65ba089401bf2d3b619c6 (diff)
fix bicubic
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 73be7e2..c8a2fae 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -738,7 +738,7 @@ GipfelWidget::get_pixel_bicubic(Fl_Image *img, double x, double y,
for (int iy = 0; iy < 4; iy++) {
for (int ix = 0; ix < 4; ix++) {
- if (get_pixel(img, (int) fl_x + ix, (int) fl_y + iy,
+ if (get_pixel(img, (int) fl_x + ix - 1, (int) fl_y + iy - 1,
&ic[0], &ic[1], &ic[2]) != 0) {
return 1;
}