comparison nuklear_ui/blastem_nuklear.c @ 2650:9263d064294c

Fix binding buttons getting cutoff
author Michael Pavone <pavone@retrodev.com>
date Sat, 01 Mar 2025 23:46:22 -0800
parents c5c9498ff279
children 2df04125ac78
comparison
equal deleted inserted replaced
2649:6fdd845907c8 2650:9263d064294c
959 max_width = max_width < lb_width ? lb_width : max_width; 959 max_width = max_width < lb_width ? lb_width : max_width;
960 } 960 }
961 nk_layout_space_push(context, nk_rect(x, y, width, (num_binds - skipped) * (row_height + 4) + 4)); 961 nk_layout_space_push(context, nk_rect(x, y, width, (num_binds - skipped) * (row_height + 4) + 4));
962 nk_group_begin(context, name, NK_WINDOW_BORDER | NK_WINDOW_NO_SCROLLBAR); 962 nk_group_begin(context, name, NK_WINDOW_BORDER | NK_WINDOW_NO_SCROLLBAR);
963 963
964 float widths[] = {max_width + 3, width - (max_width + 6)}; 964 float widths[] = {max_width + 3, width - (max_width + 22)};
965 nk_layout_row(context, NK_STATIC, row_height, 2, widths); 965 nk_layout_row(context, NK_STATIC, row_height, 2, widths);
966 for (int i = 0; i < num_binds; i++) 966 for (int i = 0; i < num_binds; i++)
967 { 967 {
968 if (!labels[i]) { 968 if (!labels[i]) {
969 continue; 969 continue;