Fix feBlend Multiply and Screen blend mode formulas
The color components are in the [0, 255] range and must
be normalized back to that range after multiplication,
in order to prevent overflow / saturation to white.
Add a /255 normalization factor to the RGB calculations.
Fixes: QTBUG-140827
Pick-to: 6.11
Change-Id: Ic2bdd8d0d74e2d4512c0a926b45ad5fae446bac8
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
| commit | f0d708603ca1946cc255f8bb36ceaac0ae1313f2 |
| parent | 8d99019b9aacdf72aba67305ea36dda1d7956e16 |
| author | Morten Sørvig <morten.sorvig@qt.io> |
| committer | Morten Johan Sørvig <morten.sorvig@qt.io> |
| commit time | Wed, 15 Apr 2026 08:38:10 +0000 |