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

93 threshold live #657

Merged
merged 3 commits into from
Jan 8, 2025
Merged

93 threshold live #657

merged 3 commits into from
Jan 8, 2025

Conversation

HiCamino
Copy link
Contributor

Hi, I have been looking at this project for a while and I am trying to fix some of these. This fix makes the Threshold add-on update when you drag the line in the histogram. I also fixed the drawing of the histogram.

Fixes #93

Fixed histogram rendering position/artifacts
Restore position of last threshold (couldn't figure out how to restore mode)

Fixes HaikuArchives#93
Use `LeftTop()` instead of `BPoint(.left, .top)` for histogramRect in
ThresholdView::Draw
Check value of threshold control before resetting in ThresholdView::SetValue
@korli korli requested a review from humdingerb December 27, 2024 09:29
Copy link
Member

@humdingerb humdingerb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested the changes and they do fix the reported issues.
The code appears correct, but I'm not super familiar with ArtPaint's code as Dale did all the coding... :)
Let's leave the PR open for a few days longer, just in case Dale sees it and chimes in.
Thanks for providing the patch, @HiCamino !

@humdingerb
Copy link
Member

@korli: satisfied with the changes?

@korli korli merged commit 88df0b7 into HaikuArchives:master Jan 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Threshold addon: apply settings live
3 participants