From dff79725e418580efd0f21ff7a500c8275e4e44f Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Sun, 15 Sep 2002 02:48:41 +0000 Subject: [PATCH] Fixed conversion from B_RGB16_BIG to BMP, I had a 1 where I was supposed to have a 0 git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1043 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/translators/bmptranslator/BMPTranslator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/translators/bmptranslator/BMPTranslator.cpp b/src/add-ons/translators/bmptranslator/BMPTranslator.cpp index 0250d6812c..8970270b41 100644 --- a/src/add-ons/translators/bmptranslator/BMPTranslator.cpp +++ b/src/add-ons/translators/bmptranslator/BMPTranslator.cpp @@ -819,7 +819,7 @@ BPositionIO *outDestination, color_space fromspace, MSInfoHeader &msheader) if (fromspace == B_RGB16) val = bitspixel[0] + (bitspixel[1] << 8); else - val = bitspixel[1] + (bitspixel[1] << 8); + val = bitspixel[1] + (bitspixel[0] << 8); bmppixel[0] = ((val & 0x1f) << 3) | ((val & 0x1f) >> 2); bmppixel[1] =