Fixed QuickRes/headerOnly issue by ignoring headerOnly/dataOnly settings and always writting out the whole image.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5993 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber 2004-01-09 02:23:49 +00:00
parent e17553b84d
commit 2c00fcbb62

View File

@ -808,6 +808,9 @@ BMPTranslator::Identify(BPositionIO *inSource,
// at the same time
return B_BAD_VALUE;
}
bheaderonly = bdataonly = false;
// only allow writing of the entire image
// (fix for buggy programs that lie about what they actually need)
uint32 n32ch;
memcpy(&n32ch, ch, sizeof(uint32));
@ -2223,6 +2226,9 @@ BMPTranslator::Translate(BPositionIO *inSource,
// at the same time
return B_BAD_VALUE;
}
bheaderonly = bdataonly = false;
// only allow writing of the entire image
// (fix for buggy programs that lie about what they actually need)
uint32 n32ch;
memcpy(&n32ch, ch, sizeof(uint32));