From d005bd3f5a7c4d58c651f2df56cdfe7bcb5accd0 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Tue, 15 Nov 2016 09:56:43 +0100 Subject: honor NK_SCALE env variable. --- osc_inspector_nk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'osc_inspector_nk.c') 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)) { -- cgit v1.2.1