From a05cd9a724949f71f6a331aef920e193cff7231b Mon Sep 17 00:00:00 2001 From: Jasper van de Gronde Date: Sat, 4 Apr 2009 13:26:17 +0000 Subject: Some extra comments. (bzr r7622) --- src/display/nr-filter-displacement-map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/display') diff --git a/src/display/nr-filter-displacement-map.cpp b/src/display/nr-filter-displacement-map.cpp index 29815abbb..321018fca 100644 --- a/src/display/nr-filter-displacement-map.cpp +++ b/src/display/nr-filter-displacement-map.cpp @@ -112,7 +112,7 @@ static void performDisplacement(NRPixBlock const* texture, NRPixBlock const* map int ymap = yout; pixel_t mapValue = pixelValue(map, xmap, ymap); - double xtex = xout + (Xneedsdemul ? + double xtex = xout + (Xneedsdemul ? // Although the value of the pixel corresponds to the MIDDLE of the pixel, no +0.5 is needed because we're interpolating pixels anyway (so to get the actual pixel locations 0.5 would have to be subtracted again). (mapValue[3]==0?0:(scalex * (mapValue[Xchannel] - mapValue[3]*0.5) / mapValue[3])) : (scalex * (mapValue[Xchannel] - 127.5))); double ytex = yout + (Yneedsdemul ? -- cgit v1.2.3