Changed to always write out full image, ignoring the headerOnly/dataOnly settings.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5995 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber
2004-01-09 02:45:24 +00:00
parent 293357ae2a
commit 6439a8fc6d
@@ -1448,9 +1448,7 @@ translate_from_bits(BPositionIO *inSource, ssize_t amtread, uint8 *read,
BPositionIO *outDestination) BPositionIO *outDestination)
{ {
TranslatorBitmap bitsHeader; TranslatorBitmap bitsHeader;
bool bheaderonly, bdataonly, brle; bool bheaderonly = false, bdataonly = false, brle;
bheaderonly = settings.SetGetHeaderOnly();
bdataonly = settings.SetGetDataOnly();
brle = settings.SetGetRLE(); brle = settings.SetGetRLE();
status_t result; status_t result;
@@ -2380,9 +2378,7 @@ translate_from_tga(BPositionIO *inSource, ssize_t amtread, uint8 *read,
TGAFileHeader fileheader; TGAFileHeader fileheader;
TGAColorMapSpec mapspec; TGAColorMapSpec mapspec;
TGAImageSpec imagespec; TGAImageSpec imagespec;
bool bheaderonly, bdataonly; bool bheaderonly = false, bdataonly = false;
bheaderonly = settings.SetGetHeaderOnly();
bdataonly = settings.SetGetDataOnly();
status_t result; status_t result;
result = identify_tga_header(inSource, NULL, amtread, read, result = identify_tga_header(inSource, NULL, amtread, read,