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

Make dpi_scale match original behavior #1936

Merged
merged 1 commit into from
May 26, 2024
Merged

Conversation

Caellian
Copy link
Collaborator

I arrived at previous solution because the original code used premultiplied values to round the result so I (incorrectly) assumed it was doing something akin to truncation.

Also replaced SFINAE with static_assert - got really carried away with it previously because I believed it provided better type checking integration; but they're the same and errors look the same.

Fixes #1930.

@github-actions github-actions bot added the sources PR modifies project sources label May 25, 2024
Copy link

netlify bot commented May 25, 2024

Deploy Preview for conkyweb canceled.

Name Link
🔨 Latest commit e3fa42b
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/665229b14ceef800086145fa

I arrived at previous solution because the original code used
premultiplied values to round the result so I (incorrectly) assumed it
was doing something akin to truncation.

Also replaced SFINAE with static_assert - got really carried away with
it previously because I believed it provided better type checking
integration; but they're the same and errors look the same.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
@Caellian
Copy link
Collaborator Author

Merging without confirmation because (according to tests) the returned values match old behavior better, even if I don't know whether it fixes the issue.

@Caellian Caellian merged commit f2938d8 into main May 26, 2024
63 checks passed
@Caellian Caellian deleted the fix/inconsistent-scaling branch May 26, 2024 19:04
@brndnmtthws brndnmtthws added the bug Bug report or bug fix PR label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report or bug fix PR sources PR modifies project sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Wrong hr line thickness
2 participants