mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix some compiler warnings
This commit is contained in:
parent
0f307122d9
commit
82f1fd57a4
23 changed files with 88 additions and 101 deletions
|
|
@ -70,7 +70,7 @@ public:
|
|||
.withAlpha (0.5f)
|
||||
.withBrightness (0.7f);
|
||||
|
||||
componentMovedOrResized (containerComponent, true, true);
|
||||
updateParentSize (comp);
|
||||
|
||||
x = Random::getSystemRandom().nextFloat() * parentWidth;
|
||||
y = Random::getSystemRandom().nextFloat() * parentHeight;
|
||||
|
|
@ -117,7 +117,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
void componentMovedOrResized (Component& comp, bool, bool) override
|
||||
void updateParentSize (Component& comp)
|
||||
{
|
||||
const ScopedLock lock (drawing);
|
||||
|
||||
|
|
@ -125,6 +125,11 @@ private:
|
|||
parentHeight = (float) comp.getHeight() - size;
|
||||
}
|
||||
|
||||
void componentMovedOrResized (Component& comp, bool, bool) override
|
||||
{
|
||||
updateParentSize (comp);
|
||||
}
|
||||
|
||||
float x = 0.0f, y = 0.0f,
|
||||
size = Random::getSystemRandom().nextFloat() * 30.0f + 30.0f,
|
||||
dx = 0.0f, dy = 0.0f,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue