From a46521c099276bb066d0a972f3b7dd7edcefccdc Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 4 Apr 2024 13:25:45 -0400 Subject: [PATCH] Fix overview mixed declarations --- demo/common/overview.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/demo/common/overview.c b/demo/common/overview.c index becdade78..f5572f8ff 100644 --- a/demo/common/overview.c +++ b/demo/common/overview.c @@ -6,14 +6,15 @@ overview(struct nk_context *ctx) static nk_flags window_flags = NK_WINDOW_TITLE|NK_WINDOW_BORDER|NK_WINDOW_SCALABLE|NK_WINDOW_MOVABLE|NK_WINDOW_MINIMIZABLE; nk_flags actual_window_flags; + /* widget flags */ + static nk_bool disable_widgets = nk_false; + /* popups */ static enum nk_style_header_align header_align = NK_HEADER_RIGHT; static nk_bool show_app_about = nk_false; ctx->style.window.header.align = header_align; - static nk_bool disable_widgets = nk_false; - actual_window_flags = window_flags; if (!(actual_window_flags & NK_WINDOW_TITLE)) actual_window_flags &= ~(NK_WINDOW_MINIMIZABLE|NK_WINDOW_CLOSABLE);