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
This commit is contained in:
parent
5fb6c38b6e
commit
dff79725e4
@ -819,7 +819,7 @@ BPositionIO *outDestination, color_space fromspace, MSInfoHeader &msheader)
|
|||||||
if (fromspace == B_RGB16)
|
if (fromspace == B_RGB16)
|
||||||
val = bitspixel[0] + (bitspixel[1] << 8);
|
val = bitspixel[0] + (bitspixel[1] << 8);
|
||||||
else
|
else
|
||||||
val = bitspixel[1] + (bitspixel[1] << 8);
|
val = bitspixel[1] + (bitspixel[0] << 8);
|
||||||
bmppixel[0] =
|
bmppixel[0] =
|
||||||
((val & 0x1f) << 3) | ((val & 0x1f) >> 2);
|
((val & 0x1f) << 3) | ((val & 0x1f) >> 2);
|
||||||
bmppixel[1] =
|
bmppixel[1] =
|
||||||
|
Loading…
Reference in New Issue
Block a user