Great to bump an allegro thread
It's an underused lib I reckon on the gp2x.
I've just installed open2x toolchain and am trying to get a simple allegro prog to work - actually not that simple as it uses loadpng, jpgalleg & glyphkeeper libs as well, so a good starting point for me..
Problem atm is I just get a black screen - that's all - will investigate whether it's me (very likely) or this iffy hardware blitter access (ie do a dummy blit first); a few fprintf(stderr)s will help
Hopefully will sort it out tomorrow - only time i get to do this is at work(!).
Anyway good to see others using allegro!
If you've got a MKII it's probably
thisYeah that's my guess.. will see today/tonight I guess.
Meant to bring the gp2x to work so I could mess around with it lunchtime.
If this is the problem, would there be any point in updating Allegro..?
However I don't know if gfoot is still around.
I'd like to know why this is a problem; I guess SDL doesn't have the same issue (or does that not wait for 'blitter ready' flag?).
EDIT:
For info - in order to get that dummy blit code to compile I had to add:
CODE
#include <xalleg.h> // for MEMORY_MAPPED
#include <sys/mman.h> // for PROT_READ, etc
Note I'm working a bit blind here without the hardware to hand.