Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 95950283 authored by BOUCHERIE Raphael's avatar BOUCHERIE Raphael
Browse files

re-added condition for ts rectangle

parent 941f63d9
No related branches found
No related tags found
1 merge request!5Print tree
...@@ -49,12 +49,22 @@ main(int argc, char ** argv) ...@@ -49,12 +49,22 @@ main(int argc, char ** argv)
libhqr_treewalk(&qrtree, k, tiles, tree, SIZE); libhqr_treewalk(&qrtree, k, tiles, tree, SIZE);
/* Drawing the rectangles */ /* Drawing the rectangles */
for (i = k + 1; i < maxMN; i++){ for (i = k + 1; i < maxMN; i++){
absciss1 = ((SIZE * 3) /4) + SIZE * tiles[i]; if(qrtree.gettype(&qrtree, k, i) == 0){
ordinate1 = ((SIZE * 3) /4) + SIZE * i; absciss1 = ((SIZE * 3) /4) + SIZE * tiles[i];
libhqr_drawTS(absciss1, ordinate1, WIDTH, HEIGHT, k, tree); ordinate1 = ((SIZE * 3) /4) + SIZE * i;
j = qrtree.currpiv(&qrtree, k, i); libhqr_drawTS(absciss1, ordinate1, WIDTH, HEIGHT, k, tree);
ordinate1 = ((SIZE * 3) /4) + SIZE * j; j = qrtree.currpiv(&qrtree, k, i);
libhqr_drawTT(absciss1, ordinate1, WIDTH, HEIGHT, k, tree); ordinate1 = ((SIZE * 3) /4) + SIZE * j;
libhqr_drawTT(absciss1, ordinate1, WIDTH, HEIGHT, k, tree);
}
else {
absciss1 = ((SIZE * 3) /4) + SIZE * tiles[i];
ordinate1 = ((SIZE * 3) /4) + SIZE * i;
libhqr_drawTS(absciss1, ordinate1, WIDTH, HEIGHT, k, tree);
j = qrtree.currpiv(&qrtree, k, i);
ordinate1 = ((SIZE * 3) /4) + SIZE * j;
libhqr_drawTT(absciss1, ordinate1, WIDTH, HEIGHT, k, tree);
}
} }
} }
libhqr_writeend(tree); libhqr_writeend(tree);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment