ref: 096768fc13226996e6c1d7b769ea2a0fe999be26
parent: 460f98e13c2f33482794572f35be6ff286609cca
author: cancel <cancel@cancel.fm>
date: Mon Nov 26 04:44:52 EST 2018
Add clear and deinit markmap (test)
--- a/cli_main.c
+++ b/cli_main.c
@@ -100,6 +100,7 @@
for (int i = 0; i < ticks; ++i) {
orca_run(&field, markmap_r.buffer);
}
+ markmap_reusable_deinit(&markmap_r);
field_fput(&field, stdout);
field_deinit(&field);
return 0;
--- a/sim.c
+++ b/sim.c
@@ -92,9 +92,9 @@
}
void orca_run(Field* field, Markmap_buffer markmap) {
- (void)markmap;
Usz ny = field->height;
Usz nx = field->width;
+ markmap_clear(markmap, ny, nx);
Glyph* field_buffer = field->buffer;
// Phase 0
for (Usz iy = 0; iy < ny; ++iy) {