aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-11-18 17:59:29 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-11-18 17:59:29 +0100
commit88e77212ce279c28c8e2b88f5cf79f58e2c16796 (patch)
tree50f86b3a3a92650282fab8b07a729bdd23fd5598 /example
parent7b8dab4e093cca351405585a6b420859349ebf51 (diff)
downloadd2tk-88e77212ce279c28c8e2b88f5cf79f58e2c16796.tar.xz
base: fix occlusion error.
Diffstat (limited to 'example')
-rw-r--r--example/example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/example.c b/example/example.c
index 83272c3..2e8c551 100644
--- a/example/example.c
+++ b/example/example.c
@@ -334,7 +334,7 @@ _render_c_pane(d2tk_base_t *base, const d2tk_rect_t *rect)
static inline void
_render_c_flowmatrix(d2tk_base_t *base, const d2tk_rect_t *rect)
{
-#define N 2
+#define N 4
static d2tk_pos_t pos_nodes [N] = { 0 };
static d2tk_pos_t pos_arcs [N][N] = { 0 };
@@ -353,7 +353,7 @@ _render_c_flowmatrix(d2tk_base_t *base, const d2tk_rect_t *rect)
{
const unsigned nin = i + 1;
- for(unsigned j = 0; j < N; j++)
+ for(unsigned j = i + 1; j < N; j++)
{
const unsigned nout = j + 1;