Skip to content

Commit c2f210a

Browse files
committed
Update CHANGELOG and Rebuild nuklear.h
1 parent 109e9bd commit c2f210a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

clib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuklear",
3-
"version": "4.12.7",
3+
"version": "4.12.8",
44
"repo": "Immediate-Mode-UI/Nuklear",
55
"description": "A small ANSI C gui toolkit",
66
"keywords": ["gl", "ui", "toolkit"],

nuklear.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8383,7 +8383,7 @@ nk_utf_decode(const char *c, nk_rune *u, int clen)
83838383
*u = NK_UTF_INVALID;
83848384

83858385
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)) */
83878387
return 1;
83888388

83898389
for (i = 1, j = 1; i < clen && j < len; ++i, ++j) {
@@ -20953,7 +20953,7 @@ nk_window_is_hovered(const struct nk_context *ctx)
2095320953
return 0;
2095420954
else {
2095520955
struct nk_rect actual_bounds = ctx->current->bounds;
20956-
if (ctx->begin->flags & NK_WINDOW_MINIMIZED) {
20956+
if (ctx->current->flags & NK_WINDOW_MINIMIZED) {
2095720957
actual_bounds.h = ctx->current->layout->header_height;
2095820958
}
2095920959
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)
3071630716
/// - [y]: Minor version with non-breaking API and library changes
3071730717
/// - [z]: Patch version with no direct changes to the API
3071830718
///
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)
3071930721
/// - 2025/04/06 (4.12.7) - Fix text input navigation and mouse scrolling
3072030722
/// - 2025/03/29 (4.12.6) - Fix unitialized data in nk_input_char
3072130723
/// - 2025/03/05 (4.12.5) - Fix scrolling knob also scrolling parent window, remove dead code

src/CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
/// - [y]: Minor version with non-breaking API and library changes
88
/// - [z]: Patch version with no direct changes to the API
99
///
10+
/// - 2025/09/12 (4.12.8) - Fix nk_window_is_hovered to use current window flags
11+
- Fix nk_utf_decode length check (allow len == NK_UTF_SIZE)
1012
/// - 2025/04/06 (4.12.7) - Fix text input navigation and mouse scrolling
1113
/// - 2025/03/29 (4.12.6) - Fix unitialized data in nk_input_char
1214
/// - 2025/03/05 (4.12.5) - Fix scrolling knob also scrolling parent window, remove dead code

0 commit comments

Comments
 (0)