summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorJasper van de Gronde <jasper.vandegronde@gmail.com>2009-04-04 13:26:17 +0000
committerjaspervdg <jaspervdg@users.sourceforge.net>2009-04-04 13:26:17 +0000
commita05cd9a724949f71f6a331aef920e193cff7231b (patch)
treee53d88e002cd18977dc51c52c70b34b82dd7d696 /src/display
parentMinor French translation update. (diff)
downloadinkscape-a05cd9a724949f71f6a331aef920e193cff7231b.tar.gz
inkscape-a05cd9a724949f71f6a331aef920e193cff7231b.zip
Some extra comments.
(bzr r7622)
Diffstat (limited to 'src/display')
-rw-r--r--src/display/nr-filter-displacement-map.cpp2
1 files changed, 1 insertions, 1 deletions
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 ?