I try to use the al_create_sub_bitmap from the my current display but it doesnt work. I constantly have that output:
Assertion failed: bitmap != dest && bitmap != dest->parent, file C:\dev\allegro_winpkg\universal\allegro\src\bitmap_draw.c, line 34
The only I found to bypass this problem is to copy the full display in an another bitmap then make my saving from this saved bitmap. Here is my trick:
2) al_draw_bitmap(display, 0, 0, 0);
4) al_create_sub_bitmap(save_bitmap, .....);
Could like to bypass all this and use al_create_sub_bitmap directly from display.
Any idea would be appreciated thank you