aboutsummaryrefslogtreecommitdiff
path: root/nk_pugl
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-10-20 12:13:16 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-10-20 12:13:16 +0200
commit1143a6108293efb9c668ccc81755f7307cc72fec (patch)
tree4169364ad27b625506ddb00b2b50edb7053cb2c0 /nk_pugl
parent39af57b14ff0103dee3e51f79091a74f9e4ab819 (diff)
parent562897045e38cb9e07c8f0baab856bb9469bed70 (diff)
downloadsynthpod-1143a6108293efb9c668ccc81755f7307cc72fec.tar.xz
Merge commit '562897045e38cb9e07c8f0baab856bb9469bed70'
Diffstat (limited to 'nk_pugl')
-rw-r--r--nk_pugl/nk_pugl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/nk_pugl/nk_pugl.h b/nk_pugl/nk_pugl.h
index d20752cc..b71ec032 100644
--- a/nk_pugl/nk_pugl.h
+++ b/nk_pugl/nk_pugl.h
@@ -827,7 +827,7 @@ _nk_pugl_expose(PuglView *view)
|| (obounds.w != wbounds.w) || (obounds.h != wbounds.h) )
{
// size has changed
- nk_window_set_bounds(ctx, wbounds);
+ nk_window_set_bounds(ctx, "__bg__", wbounds);
puglPostRedisplay(view);
}
@@ -947,7 +947,7 @@ _nk_pugl_event_func(PuglView *view, const PuglEvent *e)
_nk_pugl_zoom_out(win);
}
else
- nk_input_scroll(ctx, ev->dy);
+ nk_input_scroll(ctx, nk_vec2(0.f, ev->dy));
puglPostRedisplay(win->view);
break;