Summary: | stylus doesn't work in rgb 16 | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Elián Hanisch <lambdae2> |
Component: | General | Assignee: | Cyrille Berger <cberger> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | halla |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Elián Hanisch
2009-05-28 22:35:24 UTC
Yes, I've seen this too. Probably something stupid in the opacity paintop option. I'm thinking that this line: painter->setOpacity((qint8)qBound<qint32>(OPACITY_TRANSPARENT, opacity, OPACITY_OPAQUE )); should be: painter->setOpacity((quint8)qBound<qint32>(OPACITY_TRANSPARENT, opacity, OPACITY_OPAQUE )); And maybe we should use qreals here, but that doesn't solve the problem yet. Ok, the problem is not in the paintop. I think the alpha-darken compositeop is broken for 16 bit rgb, since only opacity == 255 is painted, and when I use buildup mode, brush looks like pencil (which would mean that other 16 bit compositeops are broken, too). SVN commit 975973 by rempt: Scale the opacity before compositing I didn't scale the opacity to the native channeltype, so painting on 16 bit colorspaces was broken. This needs probably backporting. CCBUG:194476 (Note: painting in 16bit mode is still broken, just not as broken as before...) M +4 -2 KoCompositeOpAlphaDarken.h WebSVN link: http://websvn.kde.org/?view=rev&revision=975973 Seems to work for me, can this still be reproduced ? seems that way :D |