From a5795a2b1fae5ce8f1ac1157893bc8e3b4f5071f Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 25 Feb 2020 16:51:28 +0100 Subject: Added multithreading --- src/helper.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/helper.c') diff --git a/src/helper.c b/src/helper.c index 8f03bed..fb55a8b 100644 --- a/src/helper.c +++ b/src/helper.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/24 11:54:57 by cacharle #+# #+# */ -/* Updated: 2020/02/24 14:14:43 by cacharle ### ########.fr */ +/* Updated: 2020/02/25 16:21:13 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -22,3 +22,19 @@ /* z->a = y / state->window.height * state->plane.a; */ /* z->b = x / state->window.width * state->plane.b; */ /* } */ + +void h_zoom_in(t_state *state) +{ + state->plane.r /= ZOOM_SPEED; + state->plane.i /= ZOOM_SPEED; + /* state->iterations += 3; */ + /* state_update_palette(state); */ +} + +void h_zoom_out(t_state *state) +{ + state->plane.r *= ZOOM_SPEED; + state->plane.i *= ZOOM_SPEED; + /* state->iterations -= 3; */ + /* state_update_palette(state); */ +} -- cgit