void crop_bmp(ALLEGRO_BITMAP ** bmp, int ix, int iy, int fx , int iy)
al_draw_bitmap(*bmp, -ix, -iy, 0);
I think this line is correct, bmp is **, the goal is to replace the image for the cropped image, that's why I use double pointer.
The strange is that with allegro 4.2.2 works great.
But I am trying to convert it for allegro 5.
PS: Sorry problem is not here.
pixel = al_get_pixel(bmp,x,y);
The bitmap is MAGENTA but that printf is always
I am using getpixel to calculate ix and fx
PS: Problem solved! Thanks for your support