diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2008-02-12 14:12:17 +0000 |
|---|---|---|
| committer | JucaBlues <JucaBlues@users.sourceforge.net> | 2008-02-12 14:12:17 +0000 |
| commit | e9ee51c90e9981bca768615a1ab16babc6ca00b0 (patch) | |
| tree | 745cec41a576f4eb835687a5e69f4eb037a57dbf /src | |
| parent | * [INTL: sr] Serbian (both) update by Aleksandar Urošević (re-closes: #169... (diff) | |
| download | inkscape-e9ee51c90e9981bca768615a1ab16babc6ca00b0.tar.gz inkscape-e9ee51c90e9981bca768615a1ab16babc6ca00b0.zip | |
opacity max value is 255 instead of previous wrong 256 maxvalue that was used here
(bzr r4714)
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/nr-filter-flood.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/nr-filter-flood.cpp b/src/display/nr-filter-flood.cpp index 951e5e460..34ab8eaa0 100644 --- a/src/display/nr-filter-flood.cpp +++ b/src/display/nr-filter-flood.cpp @@ -47,7 +47,7 @@ int FilterFlood::render(FilterSlot &slot, FilterUnits const &/*units*/) { r = (unsigned char) (color >> 24) % 256; g = (unsigned char) (color >> 16) % 256; b = (unsigned char) (color >> 8) % 256; - a = CLAMP_D_TO_U8(opacity*256); + a = CLAMP_D_TO_U8(opacity*255); for(i=0; i < 4*in_h*in_w; i+=4){ out_data[i]=r; |
