Re: [AD] two things

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2010-08-06, Milan Mimica <milan.mimica@xxxxxxxxxx> wrote:
> Peter Wang wrote:
> >
> >Perhaps it is just over-reading by a few bytes, due to us forgetting
> >about alignment or something.  What is the bitmap size you are loading?
> 
> #include <allegro5/allegro.h>
> #include <allegro5/allegro_image.h>
> 
> int main() {
>    al_init();
>    al_init_image_addon();
> 
>    al_create_display(640, 480);
>    al_load_bitmap("default_font.tga");
> 
>    return 0;
> }
> 
> $ gcc -g2 -O0 test.c -o test `pkg-config --static --libs
> allegro_main-debug-static-4.9 allegro_image-debug-static-4.9`
> 

I can't reproduce it here.  Does this patch help?

Peter






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/