From: JucaBlues Date: Tue, 12 Feb 2008 14:12:17 +0000 (+0000) Subject: opacity max value is 255 instead of previous wrong 256 maxvalue that was used here X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8f4dd3048f8e3767b9236553a0a7becc29f71551;p=inkscape.git opacity max value is 255 instead of previous wrong 256 maxvalue that was used here --- 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;