From 1e3c560edae968437f4026e56e8a034f841c0829 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Wed, 27 Sep 2023 16:31:03 +0200 Subject: [PATCH] =?UTF-8?q?WIP:=20Bon.=20L=C3=A0,=20=C3=A7a=20marche=20mai?= =?UTF-8?q?s=20je=20ne=20comprends=20pas=20pourquoi=20!=20(ligne=20724)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/graphics.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index c68c1ed..9536a42 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -713,7 +713,6 @@ static int create_arrow (GLuint *arrows, int arrows_nb, int weight, int site, in static int erase_arrow (GLuint *arrows, int arrows_nb, int address, int site, int x, int y, int z) { arrows_nb --; - printf("\nerase_arrow (arrows_nb %d, address %d, site %d, x %d, y %d, z %d) \n", arrows_nb, address / 5, site, x, y, z); if (arrows_nb > 0) { *(arrows + address + 0) = *(arrows + arrows_nb * 5 + 0); @@ -722,7 +721,7 @@ static int erase_arrow (GLuint *arrows, int arrows_nb, int address, int site, in *(arrows + address + 3) = *(arrows + arrows_nb * 5 + 3); *(arrows + address + 4) = *(arrows + arrows_nb * 5 + 4); } - buffer_lines_size -= (3 + 4) * 2; +// buffer_lines_size -= (3 + 4) * 2; Warum ? buffer_lines_origin = g_realloc(buffer_lines_origin, buffer_lines_size * sizeof(GLuint)); show_arrows_array(arrows, arrows_nb, address, -1, 0, site, x, y, z); @@ -803,7 +802,7 @@ void main_test_graphics (void) * are always defined (whether arrows are drawn or not). */ arrows_write_terminations (space_X, space_Y, space_Z); -// arrows_nb = set_arrow (arrows, arrows_nb, 0, 0, 0, 0, 0); + arrows_nb = set_arrow (arrows, arrows_nb, 0, 0, 0, 0, 0); arrows_nb = set_arrow (arrows, arrows_nb, 8, 1, 3, 0, 0); arrows_nb = set_arrow (arrows, arrows_nb, 0, 1, 1, 0, 0);