aboutsummaryrefslogtreecommitdiff
path: root/osc_inspector_nk.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-11-15 09:56:43 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-11-15 09:56:43 +0100
commitd005bd3f5a7c4d58c651f2df56cdfe7bcb5accd0 (patch)
tree261c28add5550b5770b6666f69e051dca8b74778 /osc_inspector_nk.c
parent53f577440330040922013ab361c939895f2a2f92 (diff)
downloadsherlock.lv2-d005bd3f5a7c4d58c651f2df56cdfe7bcb5accd0.tar.xz
honor NK_SCALE env variable.
Diffstat (limited to 'osc_inspector_nk.c')
-rw-r--r--osc_inspector_nk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/osc_inspector_nk.c b/osc_inspector_nk.c
index f5cd54b..990ada0 100644
--- a/osc_inspector_nk.c
+++ b/osc_inspector_nk.c
@@ -218,7 +218,7 @@ _osc_packet(plughandle_t *handle, struct nk_context *ctx, const LV2_Atom_Object
static void
_osc_bundle(plughandle_t *handle, struct nk_context *ctx, const LV2_Atom_Object *obj, float offset)
{
- const float widget_h = 20; //FIXME
+ const float widget_h = handle->dy;
const LV2_Atom_Object *timetag = NULL;
const LV2_Atom_Tuple *items = NULL;
@@ -281,7 +281,7 @@ _osc_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *data
{
plughandle_t *handle = data;
- const float widget_h = 20;
+ const float widget_h = handle->dy;
if(nk_begin(ctx, "Window", wbounds, NK_WINDOW_NO_SCROLLBAR))
{