Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Krita
Manage
Activity
Members
Labels
Plan
Bugzilla
Code
Merge requests
93
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Graphics
Krita
Commits
de9dc412
Commit
de9dc412
authored
4 years ago
by
Deif Lou
Committed by
Dmitry Kazakov
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix destination atop rendering
BUG:423465
parent
ed9a3f9c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/pigment/compositeops/KoCompositeOpDestinationAtop.h
+1
-3
1 addition, 3 deletions
libs/pigment/compositeops/KoCompositeOpDestinationAtop.h
with
1 addition
and
3 deletions
libs/pigment/compositeops/KoCompositeOpDestinationAtop.h
+
1
−
3
View file @
de9dc412
...
...
@@ -57,9 +57,7 @@ public:
// blend the color channels as if we were painting on the layer below
for
(
qint8
channel
=
0
;
channel
<
channels_nb
;
++
channel
)
if
(
channel
!=
alpha_pos
&&
(
allChannelFlags
||
channelFlags
.
testBit
(
channel
)))
{
/*each color blended in proportion to their calculated opacity*/
channels_type
srcMult
=
mul
(
src
[
channel
],
appliedAlpha
);
dst
[
channel
]
=
lerp
(
srcMult
,
dst
[
channel
],
dstAlpha
);
dst
[
channel
]
=
lerp
(
src
[
channel
],
dst
[
channel
],
dstAlpha
);
}
}
else
if
(
srcAlpha
!=
zeroValue
<
channels_type
>
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment