Re: [AD] Problem loading 32bit bmp file

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


Grzegorz Adam Hankiewicz wrote:
The following code doesn't show the image being loaded. The screen
is just black. Other tools like gimp or display can view the image
correctly. Unix' file command says the image is PC bitmap data,
Windows 3.x format, 638 x 478 x 32. You can get this image from:

That's no surprise. The Allegro docs says:

BITMAP *load_bmp(const char *filename, RGB *pal);
Loads a 256-color or 24-bit truecolor Windows or OS/2 BMP file.

So you cannot expect that it will load 32-bit bitmap.

--
Regards,
    Michal

ICQ# 175762750




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