@@ -8383,7 +8383,7 @@ nk_utf_decode(const char *c, nk_rune *u, int clen)
8383
8383
*u = NK_UTF_INVALID;
8384
8384
8385
8385
udecoded = nk_utf_decode_byte(c[0], &len);
8386
- if (!NK_BETWEEN(len, 1, NK_UTF_SIZE))
8386
+ if (!NK_BETWEEN(len, 1, NK_UTF_SIZE+1)) /* +1 because NK_BETWEEN uses strict upper bound ((a) <= (x) && (x) < (b)) */
8387
8387
return 1;
8388
8388
8389
8389
for (i = 1, j = 1; i < clen && j < len; ++i, ++j) {
@@ -20953,7 +20953,7 @@ nk_window_is_hovered(const struct nk_context *ctx)
20953
20953
return 0;
20954
20954
else {
20955
20955
struct nk_rect actual_bounds = ctx->current->bounds;
20956
- if (ctx->begin ->flags & NK_WINDOW_MINIMIZED) {
20956
+ if (ctx->current ->flags & NK_WINDOW_MINIMIZED) {
20957
20957
actual_bounds.h = ctx->current->layout->header_height;
20958
20958
}
20959
20959
return nk_input_is_mouse_hovering_rect(&ctx->input, actual_bounds);
@@ -30716,6 +30716,8 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
30716
30716
/// - [y]: Minor version with non-breaking API and library changes
30717
30717
/// - [z]: Patch version with no direct changes to the API
30718
30718
///
30719
+ /// - 2025/09/12 (4.12.8) - Fix nk_window_is_hovered to use current window flags
30720
+ - Fix nk_utf_decode length check (allow len == NK_UTF_SIZE)
30719
30721
/// - 2025/04/06 (4.12.7) - Fix text input navigation and mouse scrolling
30720
30722
/// - 2025/03/29 (4.12.6) - Fix unitialized data in nk_input_char
30721
30723
/// - 2025/03/05 (4.12.5) - Fix scrolling knob also scrolling parent window, remove dead code
0 commit comments