Allow loading 8-bit TGA images when wxUSE_PALETTE is set to 0.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Wed, 5 Jan 2011 11:41:22 +0000 (11:41 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Wed, 5 Jan 2011 11:41:22 +0000 (11:41 +0000)
commit07e99d87821e921950015cf5fbf9ab12b0e45665
tree78aefdbe8dd9893a30b00c0435028346ac64d381
parent13c5d825d390faf0f8806c5e24e05461add6fa4e
Allow loading 8-bit TGA images when wxUSE_PALETTE is set to 0.

Previously the image would only be loaded when wxPalette is available. This is unneccessary and probably not wanted. Instead decode as usual but use a plain memory buffer for the palette instead of wxPalette functions and don't set the image's palette.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/imagtga.cpp