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

Lots of minor changes to prevent warnings. Small fixes to Path, AudioThumbnail, ValueTree, OutputStreams. Tweaks to convert Drawables to/from ValueTrees. New method to write XML to a stream.

This commit is contained in:
Julian Storer 2009-12-16 21:13:46 +00:00
parent d9dc6b1cfc
commit 80753f4c03
87 changed files with 1445 additions and 1755 deletions

View file

@ -184,7 +184,7 @@ public:
if (! transform.isIdentity())
{
const Line l (x2, y2, x1, y1);
const Point p3 = l.getPointAlongLine (0.0, 100.0f);
const Point p3 = l.getPointAlongLine (0.0f, 100.0f);
float x3 = p3.getX();
float y3 = p3.getY();
@ -261,9 +261,9 @@ public:
gy1 (gradient.y1)
{
jassert (numEntries_ >= 0);
const float dx = gradient.x1 - gradient.x2;
const float dy = gradient.y1 - gradient.y2;
maxDist = dx * dx + dy * dy;
const float gdx = gradient.x1 - gradient.x2;
const float gdy = gradient.y1 - gradient.y2;
maxDist = gdx * gdx + gdy * gdy;
invScale = numEntries / sqrt (maxDist);
jassert (roundDoubleToInt (sqrt (maxDist) * invScale) <= numEntries);
}
@ -340,8 +340,8 @@ class GradientEdgeTableRenderer : public GradientType
{
public:
GradientEdgeTableRenderer (const Image::BitmapData& destData_, const ColourGradient& gradient, const AffineTransform& transform,
const PixelARGB* const lookupTable, const int numEntries) throw()
: GradientType (gradient, transform, lookupTable, numEntries - 1),
const PixelARGB* const lookupTable_, const int numEntries_) throw()
: GradientType (gradient, transform, lookupTable_, numEntries_ - 1),
destData (destData_)
{
}
@ -465,8 +465,8 @@ public:
void clipEdgeTableLine (EdgeTable& et, int x, int y, int width) throw()
{
jassert (x - xOffset >= 0 && x + width - xOffset <= srcData.width);
SrcPixelType* sourceLineStart = (SrcPixelType*) srcData.getLinePointer (y - yOffset);
uint8* mask = (uint8*) (sourceLineStart + x - xOffset);
SrcPixelType* s = (SrcPixelType*) srcData.getLinePointer (y - yOffset);
uint8* mask = (uint8*) (s + x - xOffset);
if (sizeof (SrcPixelType) == sizeof (PixelARGB))
mask += PixelARGB::indexA;