diff options
author | David Robillard <d@drobilla.net> | 2025-02-10 15:27:55 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-02-10 15:47:54 -0500 |
commit | 4285fab0c0b14cbbcf9ddbe29d274c0c55a04edd (patch) | |
tree | bbb72e2cf7df6072f4fed15b140a0e6c5b8af7a5 /plugins/eg-sampler.lv2 | |
parent | 3e1e609d89fb1954bd497ae8021a3b6c0aad31f6 (diff) | |
download | lv2-4285fab0c0b14cbbcf9ddbe29d274c0c55a04edd.tar.xz |
Diffstat (limited to 'plugins/eg-sampler.lv2')
-rw-r--r-- | plugins/eg-sampler.lv2/sampler_ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/eg-sampler.lv2/sampler_ui.c b/plugins/eg-sampler.lv2/sampler_ui.c index b02082a..769dde0 100644 --- a/plugins/eg-sampler.lv2/sampler_ui.c +++ b/plugins/eg-sampler.lv2/sampler_ui.c @@ -183,13 +183,13 @@ on_canvas_expose(GtkWidget* widget, GdkEventExpose* event, gpointer data) // Draw line through top peaks for (int i = 0; i < n_peaks; ++i) { const float peak = peaks[i]; - cairo_line_to(cr, i * scale, mid_y + (peak / 2.0f) * size.height); + cairo_line_to(cr, i * scale, mid_y + ((peak / 2.0f) * size.height)); } // Continue through bottom peaks for (int i = n_peaks - 1; i >= 0; --i) { const float peak = peaks[i]; - cairo_line_to(cr, i * scale, mid_y - (peak / 2.0f) * size.height); + cairo_line_to(cr, i * scale, mid_y - ((peak / 2.0f) * size.height)); } // Close shape |