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:
parent
6f4571b2e5
commit
aff5ea5a9b
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue