aboutsummaryrefslogtreecommitdiff
path: root/monitors_midi_pianoroll.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-08-10 18:53:20 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-08-10 18:53:20 +0200
commitc20f9e4a86995dc0c632e96591d51e5adb2ba4de (patch)
treed3dcc75e184b25fb0c731893d7e7766819c7d126 /monitors_midi_pianoroll.c
parent683583498dfeb9c6f46de410e35411aa04e48804 (diff)
downloadmonitors.lv2-c20f9e4a86995dc0c632e96591d51e5adb2ba4de.tar.xz
make render commands compatible with nanovg.
Diffstat (limited to 'monitors_midi_pianoroll.c')
-rw-r--r--monitors_midi_pianoroll.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/monitors_midi_pianoroll.c b/monitors_midi_pianoroll.c
index 1844716..dbe118b 100644
--- a/monitors_midi_pianoroll.c
+++ b/monitors_midi_pianoroll.c
@@ -129,6 +129,7 @@ _render(plughandle_t *handle, int64_t frames)
lv2_atom_forge_set_buffer(forge, handle->state.graph, MAX_GRAPH);
if( !lv2_atom_forge_tuple(forge, &frame)
+ || !lv2_canvas_forge_beginPath(forge, urid)
|| !lv2_canvas_forge_rectangle(forge, urid, 0.f, 0.f, 1.f, 1.f)
|| !lv2_canvas_forge_style(forge, urid, 0x0000003f)
|| !lv2_canvas_forge_fill(forge, urid)
@@ -192,7 +193,8 @@ _render(plughandle_t *handle, int64_t frames)
x1, y
};
- if( !lv2_canvas_forge_polyLine(forge, urid, 4, line)
+ if( !lv2_canvas_forge_beginPath(forge, urid)
+ || !lv2_canvas_forge_polyLine(forge, urid, 4, line)
|| !lv2_canvas_forge_style(forge, urid, active->style)
|| !lv2_canvas_forge_stroke(forge, urid) )
{
@@ -227,7 +229,8 @@ _render(plughandle_t *handle, int64_t frames)
x1, y
};
- if( !lv2_canvas_forge_polyLine(forge, urid, 4, line)
+ if( !lv2_canvas_forge_beginPath(forge, urid)
+ || !lv2_canvas_forge_polyLine(forge, urid, 4, line)
|| !lv2_canvas_forge_style(forge, urid, passive->style)
|| !lv2_canvas_forge_stroke(forge, urid) )
{