Skip to content

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
@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