Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
rswinkle committed Mar 28, 2023
1 parent fd2b134 commit 27f53d6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions demo/style_configurator.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

// TODO design decisions
// plural or not? ie style_button or style_buttons?
// use the duplicate array method, or just let the user
// manually set those after calling the function by accessing ctx->style->*?
/*
TODO design decisions
plural or not? ie style_button or style_buttons?
use the duplicate array method, or just let the user
manually set those after calling the function by accessing ctx->style->*?
*/

static const char* symbols[NK_SYMBOL_MAX] =
{
Expand Down Expand Up @@ -176,7 +178,7 @@ style_button(struct nk_context* ctx, struct nk_style_button* out_style, struct n
BOTTOM_RIGHT
};

int cur_align;
int cur_align = button.text_alignment-NK_TEXT_LEFT;
for (int i=0; i<NK_LEN(aligns); ++i) {
if (button.text_alignment == aligns[i]) {
cur_align = i;
Expand Down

0 comments on commit 27f53d6

Please sign in to comment.