]> git.draconx.ca Git - liblbx.git/commit
liblbx: Don't scale palette values internally.
authorNick Bowler <nbowler@draconx.ca>
Fri, 14 Jun 2013 01:57:11 +0000 (21:57 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 14 Jun 2013 20:35:10 +0000 (16:35 -0400)
commit4e74df93acc6594cd8a212c30dc2b429520caef2
treef234fe47e58f4cf4fa39dc7e6e255899e644e40f
parent9bc1032f0879cf57b478adad15a3d1a6c2e34a70
liblbx: Don't scale palette values internally.

Output the 18-bit palette values unadulterated, leaving it up to the
users to do conversion if necessary.  Push the conversion down into the
consumers (currently PNG output and the GTK GUI) where a 24-bit palette
is required.

While we're at it, adjust the conversion to scale to the full output
range of [0, 255].  This is a slight change to the output, so all the
image hashes need to be adjusted in the regression test.
src/gui/render.c
src/image.c
src/image.h
src/lbximg.c
src/png.c
tests/regress.zsh