Fix some latent bugs left over

This commit is contained in:
2025-03-29 21:26:24 +00:00
parent c8ecce9537
commit 5b2424af0e

3
main.c
View File

@@ -16,6 +16,7 @@
#include <raylib.h> #include <raylib.h>
#include <raymath.h> #include <raymath.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb/stb_image_write.h> #include <stb/stb_image_write.h>
#define WIDTH 1024 #define WIDTH 1024
@@ -162,7 +163,7 @@ int main(void)
else if (IsKeyPressed(KEY_SPACE)) else if (IsKeyPressed(KEY_SPACE))
{ {
threads_cancel_render(); threads_cancel_render();
memset(cells, 0, WIDTH * HEIGHT); memset(cells, 0, sizeof(cells[0]) * WIDTH * HEIGHT);
MAX_ITER *= 2; MAX_ITER *= 2;
rendered = false; rendered = false;
threads_start_render(args); threads_start_render(args);