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

allegro5: take image region into account for NK_COMMAND_IMAGE #690

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

lockie
Copy link
Contributor

@lockie lockie commented Sep 17, 2024

Hey. This pull request makes allegro5 backend take the image region into account for NK_COMMAND_IMAGE command. Without that, it is impossible to e.g. correctly render 9-slice, consider:

before:
2024-09-17-205052_277x244_scrot

after:
2024-09-17-205031_266x252_scrot

I suspect similar problem is present in gdi, gdi_native, gdip, rawfb, x11 and x11_xft backends, but unfortunately I lack the knowledge nor time to fix those.

@lockie
Copy link
Contributor Author

lockie commented Sep 18, 2024

Took me a while to get it totally right, but everything is correct this time, I swear 😅

@RobLoach
Copy link
Contributor

That's one nice looking button 👍

@RobLoach RobLoach merged commit ca8aaf3 into Immediate-Mode-UI:master Sep 19, 2024
1 check passed
@lockie
Copy link
Contributor Author

lockie commented Sep 19, 2024

Thanks ❤️

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