From 8b7e7c0f286ba27a0ba0d36683156804a8eef920 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Mon, 16 Oct 2023 23:05:32 +0200 Subject: [PATCH] WIP: modifications mineures; reste une petite erreur de dessin d'une grille... je vais ailleurs --- src/graphics/graphics.c | 2 +- src/graphics/grid.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index 42e0ca8..40ac033 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -675,7 +675,7 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void) int rand(void); void srand(unsigned int seed); // printf ("Valeur max : %d\n", RAND_MAX); min + rand() % (max+1 - min); - int arbitrary = 1000; + int arbitrary = 30; int space_X = 1 + rand() % arbitrary, space_Y = 1 + rand() % arbitrary, space_Z = 1 + rand() % arbitrary; diff --git a/src/graphics/grid.c b/src/graphics/grid.c index 7743bc5..696e14c 100644 --- a/src/graphics/grid.c +++ b/src/graphics/grid.c @@ -156,8 +156,6 @@ long write_grids_on_space_faces_lines (long offset_vertex, long offset_colors, l graphics_write_line (offset_vertex + i * 4 + 3, offset_vertex + i * 4 + 0); } - printf("write_grids_on_space_faces_lines\n"); - return (x + y + z - 3) * 4; /* if (style) offset_lines += 2 * (space_X + space_Y + space_Z - 3); */ /* else offset_lines += 4 * (space_X + space_Y + space_Z - 3); */