changed functions draw line and pixel to receive an img ptr instead of the whole structure

This commit is contained in:
hugogogo
2022-04-24 19:41:44 +02:00
parent bb3a9db930
commit a11ea35ac1
6 changed files with 46 additions and 32 deletions

View File

@@ -18,7 +18,7 @@ int plr_out_limits(t_game *game, int x, int y)
int cell_x;
int cell_y;
xmax = game->map_img.sizel / (game->map_img.bpp / 8);
xmax = game->map_img.szl / (game->map_img.bpp / 8);
ymax = game->map_win.size_y;
cell_x = x / game->map.cell;
cell_y = y / game->map.cell;