check limit a little earlier but nothing great

This commit is contained in:
asus
2024-01-13 15:43:42 +01:00
parent 98db1cc51a
commit cebfe75798
8 changed files with 57 additions and 43 deletions

View File

@@ -54,6 +54,9 @@ void draw_grid(t_fdf *fdf, int i, int j);
void draw_lines(t_fdf *fdf, int *start, int *end);
void draw_color_pixel(t_fdf *fdf, int new_x, int new_y, int z);
void draw_pixel(t_fdf *fdf, int x, int y, int color);
int is_outise_screen(t_fdf *fdf, int x, int y);
int get_primary_color(char primar, int percent);
int color_percent(t_fdf *fdf, int *p_start, int *p_end, int p_numerator, int p_denominator);
// keypress.c
void keypress_more(int keycode, t_fdf *fdf);