-rw-r--r-- | src/model/selection_info.h | 7 | ||||
-rw-r--r-- | src/model/selection_info_init.c | 2 | ||||
-rw-r--r-- | src/view/exp004init.c | 1 |
3 files changed, 3 insertions, 7 deletions
diff --git a/src/model/selection_info.h b/src/model/selection_info.h index ccd3f7a..73a1c34 100644 --- a/src/model/selection_info.h +++ b/src/model/selection_info.h | |||
@@ -4,18 +4,13 @@ | |||
4 | #include "selection_purposes.h" | 4 | #include "selection_purposes.h" |
5 | #include <stdbool.h> | 5 | #include <stdbool.h> |
6 | 6 | ||
7 | /* | ||
8 | * Vertices in the graph. | ||
9 | */ | ||
10 | #define ROWS 83905 | ||
11 | |||
12 | typedef struct | 7 | typedef struct |
13 | { | 8 | { |
14 | 9 | ||
15 | /* | 10 | /* |
16 | * Selection list. | 11 | * Selection list. |
17 | */ | 12 | */ |
18 | bool set[ROWS]; | 13 | bool *set; |
19 | 14 | ||
20 | /* | 15 | /* |
21 | * A selection is being performed. | 16 | * A selection is being performed. |
diff --git a/src/model/selection_info_init.c b/src/model/selection_info_init.c index 33b3bb5..40d00aa 100644 --- a/src/model/selection_info_init.c +++ b/src/model/selection_info_init.c | |||
@@ -4,7 +4,7 @@ | |||
4 | void | 4 | void |
5 | selection_info_init (SELECTION_INFO * s) | 5 | selection_info_init (SELECTION_INFO * s) |
6 | { | 6 | { |
7 | memset (s->set, 0, sizeof (bool) * ROWS); | 7 | s->set = NULL; |
8 | s->active = false; | 8 | s->active = false; |
9 | s->purpose = SET; | 9 | s->purpose = SET; |
10 | s->x = 0; | 10 | s->x = 0; |
diff --git a/src/view/exp004init.c b/src/view/exp004init.c index 5a6ddd0..af66623 100644 --- a/src/view/exp004init.c +++ b/src/view/exp004init.c | |||
@@ -18,6 +18,7 @@ exp004init (void) | |||
18 | * Initialize default values, zero memory and NULL pointers. | 18 | * Initialize default values, zero memory and NULL pointers. |
19 | */ | 19 | */ |
20 | S.rows = 0; | 20 | S.rows = 0; |
21 | S.gi_data = NULL; | ||
21 | S.base_vertices_data = NULL; | 22 | S.base_vertices_data = NULL; |
22 | S.base_colors_data = NULL; | 23 | S.base_colors_data = NULL; |
23 | selection_info_init (&S.selection); | 24 | selection_info_init (&S.selection); |