Skip to content

[3.4.1] Fix windows text aliasing #4128

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

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

PatriceJiang
Copy link
Contributor

@@ -485,7 +485,7 @@ class CanvasRenderingContext2DImpl {
// Because text is drawn in white color, and background color is black,
// so the red value is equal to alpha value. And we should keep this value
// as it includes anti-atlas information.
uint8_t alpha = GetRValue(clr) ? 255 : 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

导致 alpha 通道不平滑

@PatriceJiang PatriceJiang changed the title Fix windows text aliasing [3.4.1] Fix windows text aliasing Dec 31, 2021
@@ -485,7 +485,7 @@ class CanvasRenderingContext2DImpl {
// Because text is drawn in white color, and background color is black,
// so the red value is equal to alpha value. And we should keep this value
// as it includes anti-atlas information.
uint8_t alpha = GetRValue(clr) ? 255 : 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

导致 alpha 通道不平滑

@minggo minggo merged commit 52d11e9 into cocos:v3.4.1 Jan 4, 2022
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