aboutsummaryrefslogtreecommitdiff
path: root/vm_ui.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-21 14:54:05 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-21 14:54:05 +0100
commitf3d77a9c079754914ebe1ccdfc58d0df953be8b8 (patch)
tree81de623f1457a5c5e7ed4dd7994d12ab5e5de98a /vm_ui.c
parent11088137929d6cff5e53daf76b16cbdc0471a729 (diff)
downloadvm.lv2-f3d77a9c079754914ebe1ccdfc58d0df953be8b8.tar.xz
implement time extension.
Diffstat (limited to 'vm_ui.c')
-rw-r--r--vm_ui.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/vm_ui.c b/vm_ui.c
index 95ee4ec..021f3b3 100644
--- a/vm_ui.c
+++ b/vm_ui.c
@@ -262,7 +262,8 @@ _expose(struct nk_context *ctx, struct nk_rect wbounds, void *data)
const command_enum_t old_cmd_type = cmd->type;
int cmd_type = old_cmd_type;
- nk_combobox(ctx, command_labels, COMMAND_MAX, &cmd_type, dy, nk_vec2(nk_widget_width(ctx), dy*COMMAND_MAX)); //FIXME
+ nk_combobox(ctx, command_labels, COMMAND_MAX, &cmd_type,
+ dy, nk_vec2(nk_widget_width(ctx), dy*14));
if(old_cmd_type != cmd_type)
{
cmd->type = cmd_type;
@@ -328,7 +329,7 @@ _expose(struct nk_context *ctx, struct nk_rect wbounds, void *data)
const char *desc = show_mnemo && vm_api_def[cmd->op].mnemo
? vm_api_def[cmd->op].mnemo
: vm_api_def[cmd->op].label;
- if(nk_combo_begin_label(ctx, desc, nk_vec2(nk_widget_width(ctx), dy*OP_MAX))) //FIXME
+ if(nk_combo_begin_label(ctx, desc, nk_vec2(nk_widget_width(ctx), dy*14)))
{
nk_layout_row_dynamic(ctx, dy, 1);
for(unsigned op = 0; op < OP_MAX; op++)
@@ -362,6 +363,10 @@ _expose(struct nk_context *ctx, struct nk_rect wbounds, void *data)
}
}
+ // add spacing so we can see the whole combobox of last elements
+ nk_layout_row_dynamic(ctx, dy, 1);
+ nk_spacing(ctx, 10);
+
if(sync)
{
atom_ser_t *ser = &handle->ser;