Thanks for this nice legacy library.
I tried to use it but failed. I want to replace allegro 4.4.2 with allegro 5.2.3 and your legacy lib.
I blit to screen with allegro 4.4.2 like this
If I use your lib and allegro5 and just add allegro_render_screen() after blit() it crashes in acquire_screen()
acquire_screen () at /usr/local/include/allegro/inline/gfx.inl:221
221 AL_LEGACY_INLINE(void, acquire_screen, (void),
If I remove acquire_screen() and release_screen() it crashes in BLIT
0x00007ffff7609f32 in blit (src=0x93d350, dest=0x0, s_x=0, s_y=0, d_x=0, d_y=0, w=800, h=600) at /home/hbs/src/Allegro-Legacy/src/blit.c:706
Obviously I'm missing something ? At what point do I have to use
ALLEGRO_BITMAP * allegro_get_a5_bitmap(BITMAP * bp);
void allegro_render_a5_bitmap(BITMAP * bp, ALLEGRO_BITMAP * a5bp); ?