/* ************************************************************************** */ /* LE - / */ /* / */ /* ft_set_minimap_scale.c .:: .:/ . .:: */ /* +:+:+ +: +: +:+:+ */ /* By: rbousset +:+ +: +: +:+ */ /* #+# #+ #+ #+# */ /* Created: 2020/02/09 14:33:30 by rbousset #+# ## ## #+# */ /* Updated: 2020/02/09 14:33:31 by rbousset ### #+. /#+ ###.fr */ /* / */ /* / */ /* ************************************************************************** */ #include void ft_set_minimap_scale(t_cub *clist) { ((clist->scale = (clist->wlist->x_size / (uint16_t)clist->map_w) - 1) < 1) ? (clist->scale = 1) : 0; (clist->wlist->y_size < (clist->map_h * clist->scale)) ? (clist->scale = (clist->wlist->y_size / (uint16_t)clist->map_h) - 1) : 0; }