Skip to content

Commit

Permalink
Merge pull request #630 from RobLoach/fix-overview-warning
Browse files Browse the repository at this point in the history
Fix overview mixed declarations
  • Loading branch information
RobLoach authored Apr 5, 2024
2 parents 34ea8bb + a46521c commit 7194b52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demo/common/overview.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7194b52

Please sign in to comment.