aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector_nk.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-11-05 12:50:08 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-11-05 12:50:08 +0100
commitbabeddd5874d4bd4f89f8995dbfff8d9b94af9cc (patch)
tree0ff85a1957447d239f904902edd51a96aec66141 /atom_inspector_nk.c
parentae914e4c6072a468792a6f93f0b8875f9be94c45 (diff)
downloadsherlock.lv2-babeddd5874d4bd4f89f8995dbfff8d9b94af9cc.tar.xz
nk: count events instead of sequences.
Diffstat (limited to 'atom_inspector_nk.c')
-rw-r--r--atom_inspector_nk.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/atom_inspector_nk.c b/atom_inspector_nk.c
index 5b92f20..b143561 100644
--- a/atom_inspector_nk.c
+++ b/atom_inspector_nk.c
@@ -198,6 +198,7 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
nk_layout_row_end(ctx);
last = body;
+ counter += 1;
}
if(handle->bottom)
@@ -205,10 +206,10 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
ttl_dirty = true;
handle->selected = last;
}
-
- counter += 1;
}
+ handle->count = counter;
+
const struct nk_panel *panel = nk_window_get_panel(ctx);
if(handle->bottom)
{
@@ -255,7 +256,7 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
}
nk_layout_row_dynamic(ctx, wbounds.h, 1);
- const nk_flags flags = NK_EDIT_EDITOR | NK_EDIT_READ_ONLY;
+ const nk_flags flags = NK_EDIT_EDITOR;
const nk_flags mode = nk_edit_buffer(ctx, flags, &handle->edit, nk_filter_default);
(void)mode;