From 2c00fcbb62d5ec6eaee84768daeff0c13c6759d7 Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Fri, 9 Jan 2004 02:23:49 +0000 Subject: [PATCH] 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 --- src/add-ons/translators/bmptranslator/BMPTranslator.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/add-ons/translators/bmptranslator/BMPTranslator.cpp b/src/add-ons/translators/bmptranslator/BMPTranslator.cpp index 579b608fe7..0b326ab61f 100644 --- a/src/add-ons/translators/bmptranslator/BMPTranslator.cpp +++ b/src/add-ons/translators/bmptranslator/BMPTranslator.cpp @@ -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));