From 27f53d6cce815bb06a9af1036ae34fd5fd9f5244 Mon Sep 17 00:00:00 2001 From: Robert Winkler Date: Tue, 28 Mar 2023 10:41:13 -0700 Subject: [PATCH] rebase --- demo/style_configurator.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/demo/style_configurator.c b/demo/style_configurator.c index cac536b61..a9a1b44f2 100644 --- a/demo/style_configurator.c +++ b/demo/style_configurator.c @@ -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] = { @@ -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