Skip to content

Re-implementation nk_text_clamp for correct clamping logic#830

Draft
PavelSharp wants to merge 2 commits intoImmediate-Mode-UI:masterfrom
PavelSharp:fix-nk_text_clamp
Draft

Re-implementation nk_text_clamp for correct clamping logic#830
PavelSharp wants to merge 2 commits intoImmediate-Mode-UI:masterfrom
PavelSharp:fix-nk_text_clamp

Conversation

@PavelSharp
Copy link
Contributor

This pull request refers to #828.

I am submitting this as a draft since additional testing with existing code is still required. From my perspective, the new implementation appears correct and reliable. Another key improvement is that NULL pointer parameters are now handled gracefully, eliminating potential undefined behavior.

I would appreciate feedback from reviewers, especially regarding edge cases or scenarios that I may have overlooked.

Before (For source code of example app please see #828)
изображение
After
изображение

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

Comments