diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2009-01-02 12:18:25 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2009-01-02 12:18:25 +0000 |
| commit | ce6f12df4a3f9969f1e42aeaa3cfdd31e0602ae6 (patch) | |
| tree | 301702c746a4de6dbd5f9eff52b90256c9f2ba9c /src/display/pixblock-scaler.cpp | |
| parent | reorder LPE list (diff) | |
| download | inkscape-ce6f12df4a3f9969f1e42aeaa3cfdd31e0602ae6.tar.gz inkscape-ce6f12df4a3f9969f1e42aeaa3cfdd31e0602ae6.zip | |
Move filters into their own namespace Inkscape::Filters (from NR::)
(bzr r7058)
Diffstat (limited to 'src/display/pixblock-scaler.cpp')
| -rw-r--r-- | src/display/pixblock-scaler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/display/pixblock-scaler.cpp b/src/display/pixblock-scaler.cpp index 39c82daf6..511104c43 100644 --- a/src/display/pixblock-scaler.cpp +++ b/src/display/pixblock-scaler.cpp @@ -181,6 +181,8 @@ static void scale_bicubic_rgba(NRPixBlock *to, NRPixBlock *from) _check_index(to, to_y * to->rs + to_x * 4, __LINE__); + using Inkscape::Filters::clamp; + using Inkscape::Filters::clamp_alpha; if (to->mode == NR_PIXBLOCK_MODE_R8G8B8A8P) { /* Clamp the colour channels to range from 0 to result.a to * make sure, we don't exceed 100% per colour channel with @@ -268,7 +270,7 @@ void scale_bicubic_alpha(NRPixBlock *to, NRPixBlock *from) _check_index(to, to_y * to->rs + to_x, __LINE__); - NR_PIXBLOCK_PX(to)[to_y * to->rs + to_x] = clamp(result); + NR_PIXBLOCK_PX(to)[to_y * to->rs + to_x] = Inkscape::Filters::clamp(result); } } } |
