aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_wall_threads.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_wall_threads.c44
1 files changed, 33 insertions, 11 deletions
diff --git a/src/ft_wall_threads.c b/src/ft_wall_threads.c
index 30aa3b9..4855da6 100644
--- a/src/ft_wall_threads.c
+++ b/src/ft_wall_threads.c
@@ -22,9 +22,10 @@ void
cl = (t_cub *)vargp;
i = 0;
- while (i < cl->wlist.x_size / 4)
+ while (i < cl->wlist.x_size / 5)
{
- ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_b_tab[i]);
+ ft_draw_verline(cl, i,
+ cl->rlist.wall_t_tab[i], cl->rlist.wall_b_tab[i]);
i++;
}
pthread_exit(0x0);
@@ -38,10 +39,11 @@ void
uint16_t i;
cl = (t_cub *)vargp;
- i = cl->wlist.x_size / 4;
- while (i < 2 * (cl->wlist.x_size / 4))
+ i = cl->wlist.x_size / 5;
+ while (i < 2 * (cl->wlist.x_size / 5))
{
- ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_b_tab[i]);
+ ft_draw_verline(cl, i,
+ cl->rlist.wall_t_tab[i], cl->rlist.wall_b_tab[i]);
i++;
}
pthread_exit(0x0);
@@ -55,10 +57,11 @@ void
uint16_t i;
cl = (t_cub *)vargp;
- i = 2 * (cl->wlist.x_size / 4);
- while (i < 3 * (cl->wlist.x_size / 4))
+ i = 2 * (cl->wlist.x_size / 5);
+ while (i < 3 * (cl->wlist.x_size / 5))
{
- ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_b_tab[i]);
+ ft_draw_verline(cl, i,
+ cl->rlist.wall_t_tab[i], cl->rlist.wall_b_tab[i]);
i++;
}
pthread_exit(0x0);
@@ -72,10 +75,29 @@ void
uint16_t i;
cl = (t_cub *)vargp;
- i = 3 * (cl->wlist.x_size / 4);
- while (i < 4 * (cl->wlist.x_size / 4))
+ i = 3 * (cl->wlist.x_size / 5);
+ while (i < 4 * (cl->wlist.x_size / 5))
{
- ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_b_tab[i]);
+ ft_draw_verline(cl, i,
+ cl->rlist.wall_t_tab[i], cl->rlist.wall_b_tab[i]);
+ i++;
+ }
+ pthread_exit(0x0);
+ return (0x0);
+}
+
+void
+ *ft_wall_five(void *vargp)
+{
+ t_cub *cl;
+ uint16_t i;
+
+ cl = (t_cub *)vargp;
+ i = 4 * (cl->wlist.x_size / 5);
+ while (i < 5 * (cl->wlist.x_size / 5))
+ {
+ ft_draw_verline(cl, i,
+ cl->rlist.wall_t_tab[i],cl->rlist.wall_b_tab[i]);
i++;
}
pthread_exit(0x0);