]> git.draconx.ca Git - liblbx.git/commit
Implement image masks to handle transparency in images.
authorNick Bowler <draconx@gmail.com>
Fri, 4 Jan 2008 10:52:55 +0000 (05:52 -0500)
committerNick Bowler <draconx@gmail.com>
Fri, 4 Jan 2008 10:52:55 +0000 (05:52 -0500)
commit76e363aa42e94748b34370e7f01aa587e555722c
tree0363af7c02f81f718e177f69a5aa24c8ad8bde5d
parente1720d76904b883a5a4e820c631afe816ffd2701
Implement image masks to handle transparency in images.

This makes a whole bootload of images work properly.

LBX doesn't translate nicely to PNG when there are transparent pixels.
Therefore, lbximg will use 256-colour paletted PNG when there are no such
pixels, and 32-bit RGBA PNG when there is at least one such pixel.  This choice
is mainly because working with 32-bit RGBA PNGs takes forever on my laptop.

Apparently the simtex logo image contains some transparent pixels, thus the
regression test has been suitably updated.
src/image.c
src/image.h
src/lbximg.c
tests/regress.sh