Tue, 21 May 2013 21:24:32 -0700Cleaned up whitespace for the 2.0.0 release
Sam Lantinga <slouken@libsdl.org> [Tue, 21 May 2013 21:24:32 -0700] rev 368
Cleaned up whitespace for the 2.0.0 release

Thu, 25 Apr 2013 00:22:51 -0700Fixed bug 1821 - IMG_LoadLBM/PNM/XCF_RW() crash with a heap corruption on loading LBM, PNM or XCF images
Sam Lantinga <slouken@libsdl.org> [Thu, 25 Apr 2013 00:22:51 -0700] rev 367
Fixed bug 1821 - IMG_LoadLBM/PNM/XCF_RW() crash with a heap corruption on loading LBM, PNM or XCF images

Marcus von Appen

Trying to load a LBM image via any of the IMG_* functions will lead to a heap corruption on Windows 7, causing the application to crash.

The problem is caused by the usage of SDL_malloc on Win32, which by default uses dlmalloc, which in turn redefines malloc and free within the SDL address space.

The CRT heap manager hence is unaware of the pointer being allocated and will try to free an unmanaged memory segment by calling free() on the temporary buffer in IMG_LoadLBM_RW().

Tue, 23 Apr 2013 20:15:22 -0700Removed Mac OS X bug workaround. SDL is fixed, thanks Jorgen!
Sam Lantinga <slouken@libsdl.org> [Tue, 23 Apr 2013 20:15:22 -0700] rev 366
Removed Mac OS X bug workaround. SDL is fixed, thanks Jorgen!

Wed, 17 Apr 2013 01:45:53 -0700Fixed bug 1801 - typo in the xcf decoder, condition is always false
Sam Lantinga <slouken@libsdl.org> [Wed, 17 Apr 2013 01:45:53 -0700] rev 365
Fixed bug 1801 - typo in the xcf decoder, condition is always false

blaffablaffa

I'm compiling sdl_image with clang, and it gives this warning:

IMG_xcf.c:523:28: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
l = (Uint8)(0.2990 * ((a && 0x00FF0000) >> 16)

This is of course always false, because (a && 0x00FF0000) is '1', so if shifted gives always 0. There are a couple of other similar issues in the same file.

Tue, 16 Apr 2013 09:33:51 -0700BMP files don't contain alpha information in the palette, the fourth element is reserved and must be zero.
Sam Lantinga <slouken@libsdl.org> [Tue, 16 Apr 2013 09:33:51 -0700] rev 364
BMP files don't contain alpha information in the palette, the fourth element is reserved and must be zero.

Sun, 24 Mar 2013 09:56:58 -0700We're using the alpha component of the palette entries, let's name it appropriately.
Sam Lantinga <slouken@libsdl.org> [Sun, 24 Mar 2013 09:56:58 -0700] rev 363
We're using the alpha component of the palette entries, let's name it appropriately.

Sun, 24 Mar 2013 09:20:18 -0700No need for volatile here.
Sam Lantinga <slouken@libsdl.org> [Sun, 24 Mar 2013 09:20:18 -0700] rev 362
No need for volatile here.

Sat, 23 Mar 2013 13:37:33 -0700Fixed bug setting colorkey for indexed PNG images
Sam Lantinga <slouken@libsdl.org> [Sat, 23 Mar 2013 13:37:33 -0700] rev 361
Fixed bug setting colorkey for indexed PNG images

Sun, 10 Mar 2013 10:20:19 -0700Torsten Stremlau added support for alpha and lossless WEBP images
Sam Lantinga <slouken@libsdl.org> [Sun, 10 Mar 2013 10:20:19 -0700] rev 360
Torsten Stremlau added support for alpha and lossless WEBP images

Sun, 10 Mar 2013 10:04:52 -0700Fixed loading grayscale PNGs with SDL 2.0
Sam Lantinga <slouken@libsdl.org> [Sun, 10 Mar 2013 10:04:52 -0700] rev 359
Fixed loading grayscale PNGs with SDL 2.0
Only set the RGB masks if we have RGB channels in the image format