|
|
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
> save
>> an image in preview on a mac, it saves the image with the
> dimensions
>> 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@xxxxxxxxxxxxxxxx
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
--
http://codebad.com/
_______________________________________________
SDL mailing list
SDL@xxxxxxxxxxxxxxxx
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
|
|