aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-02-09 17:13:28 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-02-09 17:13:28 +0100
commitc71a1cce134b9944d450cfb00a913621132688b9 (patch)
tree2379758895091203b9cde7b99d6c6859d1e8fa39 /example
parentd4ab59d9cf8f3052880348ee4ed99bdfdb630802 (diff)
downloadd2tk-c71a1cce134b9944d450cfb00a913621132688b9.tar.xz
base: finalize flowmatrix arc iterator.
Diffstat (limited to 'example')
-rw-r--r--example/example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/example.c b/example/example.c
index 5860414..852b66b 100644
--- a/example/example.c
+++ b/example/example.c
@@ -473,7 +473,7 @@ _render_c_flowmatrix(d2tk_base_t *base, const d2tk_rect_t *rect)
const unsigned y = d2tk_flowmatrix_arc_get_index_y(arc);
bool *val = &value[i][j][k];
- state |= d2tk_base_toggle(base, id, bnd, val);
+ state = d2tk_base_dial_bool(base, id, bnd, val);
if(d2tk_state_is_changed(state))
{
fprintf(stderr, "Arc %u/%u %s\n", x, y, *val ? "ON" : "OFF");