Skip to content

fix draw text with alpha #720

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

fix draw text with alpha #720

wants to merge 6 commits into from

Conversation

var4yn
Copy link

@var4yn var4yn commented Jul 26, 2025

My pull request about problem.

Added the HAS_ALPHA: bool associated constant to the Pixel trait.
I want to update the current has_alpha check in the draw_text_mut() func to use Pixel::HAS_ALPHA once it becomes available.

This requires updating the minimum Rust version to 1.81.0.
and the rayon crate version to 1.10.0.

@var4yn
Copy link
Author

var4yn commented Jul 26, 2025

I don't know how to fix the safety/miri errors.
The problem is caused by inexact calculations.

@cospectrum
Copy link
Contributor

I don't know how to fix the safety/miri errors. The problem is caused by inexact calculations.

Yeah, it's not your fault. Probably related to the recent nightly update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants