Should fix bug #3401. Put the parenthesis at the wrong spot resulting in wrong offsets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29125 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -583,10 +583,10 @@ ConvertBits(const srcByte *srcBits, dstByte *dstBits, int32 srcBitsLength,
|
|||||||
dstOffsetY = 0;
|
dstOffsetY = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
srcBits = (srcByte*)((uint8*)srcBits + (srcOffsetY * srcBitsPerRow + srcOffsetX
|
srcBits = (srcByte*)((uint8*)srcBits + ((srcOffsetY * srcBitsPerRow + srcOffsetX
|
||||||
* (srcBitsPerPixel >> 3)));
|
* srcBitsPerPixel) >> 3));
|
||||||
dstBits = (dstByte*)((uint8*)dstBits + (dstOffsetY * dstBitsPerRow + dstOffsetX
|
dstBits = (dstByte*)((uint8*)dstBits + ((dstOffsetY * dstBitsPerRow + dstOffsetX
|
||||||
* (dstBitsPerPixel >> 3)));
|
* dstBitsPerPixel) >> 3));
|
||||||
|
|
||||||
// Ensure that the width fits
|
// Ensure that the width fits
|
||||||
int32 srcWidth = (srcBitsPerRow - srcOffsetX * srcBitsPerPixel)
|
int32 srcWidth = (srcBitsPerRow - srcOffsetX * srcBitsPerPixel)
|
||||||
|
|||||||
Reference in New Issue
Block a user