From b4723dc7479473f539a85fbd0f4b856db36bdcae Mon Sep 17 00:00:00 2001 From: Raphael Boucherie <raphael.boucherie@inria.fr> Date: Wed, 12 Apr 2017 15:53:37 +0200 Subject: [PATCH] Can draw all the lines of the tree --- testings/testing_treedraw.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testings/testing_treedraw.c b/testings/testing_treedraw.c index 9e802c2..b8c13a7 100644 --- a/testings/testing_treedraw.c +++ b/testings/testing_treedraw.c @@ -50,6 +50,12 @@ main(int argc, char ** argv) x2 = 50 + 50*tiles[i]; libhqr_drawline(x1, y1, x2, y2, tree); } + for ( int i = 1; i < maxMN; i++){ + x1 = x2 = 50 + 50*tiles[i]; + y1 = 50 + 50 * i; + y2 = 50 + 50 * (qrtree.currpiv(&qrtree, 0, i)); + libhqr_drawline(x1, y1, x2, y2, tree); + } libhqr_writeend(tree); free(tree); return 1; -- GitLab