Fix: removed the t_img texture and left the t_texture instead.

This commit is contained in:
B.Goulard 2024-12-17 17:28:51 +01:00
parent eda859f200
commit 7f1091b721
9 changed files with 35 additions and 40 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/11 19:53:42 by rparodi #+# #+# */
/* Updated: 2024/12/16 15:36:35 by bgoulard ### ########.fr */
/* Updated: 2024/12/17 17:18:34 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
@ -18,7 +18,6 @@
#include "ft_math.h"
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
@ -51,14 +50,9 @@ t_win_list *c3_init_mlx_window(t_info *info)
int init_mlx_env(t_info *info)
{
info->mlx_ptr = mlx_init();
if (!info->mlx_ptr)
return (info->last_error = ERROR_MLX, info->errno_state = errno, \
ERROR_MLX);
info->win_ptr = c3_init_mlx_window(info);
if (!info->win_ptr)
return (info->last_error = ERROR_MLX, info->errno_state = errno, \
ERROR_MLX);
return (sv_errno(info, ERROR_MLX), ERROR_MLX);
mlx_hook(info->win_ptr, KeyPress, KeyPressMask, keypress_feature, info);
mlx_hook(info->win_ptr, KeyRelease, KeyReleaseMask, keyrelease_feature, \
info);