Re: [AD] Problem loading 32bit bmp file |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wed, 2005-08-17 at 14:31 +0200, Evert Glebbeek wrote:
> On Wednesday 17 August 2005 14:21, Michal Molhanec wrote:
> > 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.
>
> Hmm... the docs are incorrect anyway, since Allegro can load 16 bit BMP
> files too (at least, looking at the code suggests that it can, I haven't
> tried it). But you're right in that it doesn't say it can read 32 bit BMP
> files.
> Anyway, the fix appears to be simple enough. Proposed patch attached.
>
Should we also apply this?
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=1223015&group_id=5665
It somehow makes Allegro recognize more .mid files from what I
understand, so it's about the same as this for .bmp. Guess we should
have asked for an example file.
--
Elias Pschernig