From c169dc1ef87458680a71c5616d9f930e2e4560e0 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 18 Mar 2007 13:29:24 +0100 Subject: fix bicubic --- src/GipfelWidget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3