added slider widget

This commit is contained in:
itsmattkc
2019-08-31 16:55:57 +10:00
parent a4369c4d79
commit ff02b41cdc
19 changed files with 868 additions and 20 deletions
+1 -2
View File
@@ -88,8 +88,7 @@ void ColorService::AssociateAlphaInternal(ColorService::AlphaAction action, T *d
for (int i=0;i<pix_count;i+=kRGBAChannels) {
T alpha = data[i+kRGBChannels];
// FIXME: Is qIsNull the correct approach here or should it literally be an != 0?
if (action == kAssociate || !qIsNull(alpha)) {
if (action == kAssociate || alpha > 0) {
for (int j=0;j<kRGBChannels;j++) {
if (action == kDisassociate) {
data[i+j] /= alpha;