Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

Commit

Permalink
Closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilian BOTREL committed Apr 30, 2019
1 parent b9505fe commit 6cde0df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion srcs/events/change_fractal.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: kibotrel <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/18 10:07:57 by kibotrel #+# #+# */
/* Updated: 2019/04/01 17:10:31 by kibotrel ### ########.fr */
/* Updated: 2019/04/30 15:50:41 by kibotrel ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -32,6 +32,8 @@ void change_fractal(t_env *env, int key)
else if (key == NUM_8)
env->fractal = FLOWER;
env->cam->shift = DEFAULT;
if (env->fractal >= SIERPINSKI)
env->cam->color = 1;
color_preset(env);
reset(env);
}

0 comments on commit 6cde0df

Please sign in to comment.