Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fill the lumens overlay properly #4045

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented May 9, 2023

Identify the Bug or Feature request

Fixes a missed case in PR #4003.

Description of the Change

We removed the logic to clear images returned from BufferedImagePool because all the uses of it already either cleared the image or rendered to it completely.

While the lumens overlay also filled the buffer before rendering, it mistakenly did that with SrcOver, meaning the existing contents of the buffer were being mixed with the fill color. This has now been changed so that it instead uses Src to overwrite the buffer contents.

Possible Drawbacks

Should be none.

Documentation Notes

N/A

Release Notes

N/A (only exists in develop)


This change is Reviewable

Using SrcOver would combine the overlay with the existing contents of the buffer. Now that the buffer is not cleared
beforehand, this problem has become visible.

FIXUP
@cwisniew cwisniew added the bug label May 9, 2023
@cwisniew
Copy link
Member

cwisniew commented May 9, 2023

@kwvanderlinde, just to make sure before I merge, is this intended for 1.13.1 or 1.14

@kwvanderlinde
Copy link
Collaborator Author

1.14

@cwisniew cwisniew added this pull request to the merge queue May 9, 2023
Merged via the queue into RPTools:develop with commit 9fa5c9f May 9, 2023
@kwvanderlinde kwvanderlinde deleted the refactor/4002-fix-lumens-overlay-transparency branch May 9, 2023 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

2 participants