8000 add `Icon::from_bytes` by cyrgani · Pull Request #540 · not-fl3/miniquad · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add Icon::from_bytes #540

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 1 commit into
base: master
Choose a base branch
from
Open

Conversation

cyrgani
Copy link
Contributor
@cyrgani cyrgani commented Apr 11, 2025

This is the same as not-fl3/macroquad#928, but moved to miniquad for greater accessibility.

This PR adds the function Icon::from_bytes, which can be used to construct a Icon for use in a Conf. Previously, there was no practical way to do this, except to manually use include_bytes! and have three differently scaled versions. (best example of how impractical this is: https://github.com/not-fl3/miniquad/blob/master/src/default_icon.rs)

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.

1 participant
0