1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Replaced two instances of src[1] with src[0] in the render4PixelAverage method as adding pixelStride handles the offset

This commit is contained in:
ed 2016-09-21 09:54:18 +01:00
parent 6f4571b2e5
commit aff5ea5a9b

View file

@ -1257,9 +1257,9 @@ namespace EdgeTableFillers
uint32 c = 256 * 128;
c += src[0] * ((256 - subPixelX) * (256 - subPixelY));
src += this->srcData.pixelStride;
c += src[1] * (subPixelX * (256 - subPixelY));
c += src[0] * (subPixelX * (256 - subPixelY));
src += this->srcData.lineStride;
c += src[1] * (subPixelX * subPixelY);
c += src[0] * (subPixelX * subPixelY);
src -= this->srcData.pixelStride;
c += src[0] * ((256 - subPixelX) * subPixelY);