Excellent work Tony! Kenneth, I don't really know the BMP file format,
perhaps you'd like to submit a patch for this?
On Tue, Feb 24, 2009 at 3:32 AM, Kenneth Bull <llubnek@xxxxxxxxx> wrote:
> On Tuesday 24 Feb 2009 01:58:02 Tony Parkes wrote:
>> I tracked this problem down. Thanks for the advise, implying it could
>> be mis-interpreting the file dimensions made me take a closer look. It
>> seems that if I create an image of say 100 x 100 in pixelmator or
>> an image in preview on a mac, it saves the image with the
>> as 100 x -100. Gimp fixed the issue.
> Actually, that probably is a bug in SDL. A negative height value in a
> windows bitmap file indicates that the pixel data is stored top down
> instead of bottom up. If SDL is reading that -100 as a height of
> 0x100000000-100, that's an error.
> SDL mailing list
SDL mailing list