1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

Minor code clean-ups.

This commit is contained in:
Julian Storer 2010-03-27 18:29:09 +00:00
parent db08236375
commit b67c077f0d
54 changed files with 441 additions and 363 deletions

View file

@ -586,11 +586,9 @@ public:
y = y_;
generate (scratchBuffer, x, width);
const uint8* mask = reinterpret_cast <uint8*> (scratchBuffer.getData());
if (sizeof (SrcPixelType) == sizeof (PixelARGB))
mask += PixelARGB::indexA;
et.clipLineToMask (x, y_, mask, sizeof (SrcPixelType), width);
et.clipLineToMask (x, y_,
reinterpret_cast<uint8*> (scratchBuffer.getData()) + SrcPixelType::indexA,
sizeof (SrcPixelType), width);
}
private: