mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Cleaned up some compiler warnings.
This commit is contained in:
parent
46f1c15f92
commit
0033491cc8
36 changed files with 327 additions and 276 deletions
|
|
@ -26,24 +26,24 @@
|
|||
class DropShadower::ShadowWindow : public Component
|
||||
{
|
||||
public:
|
||||
ShadowWindow (Component& owner, const int type_, const Image shadowImageSections [12])
|
||||
: topLeft (shadowImageSections [type_ * 3]),
|
||||
bottomRight (shadowImageSections [type_ * 3 + 1]),
|
||||
filler (shadowImageSections [type_ * 3 + 2]),
|
||||
type (type_)
|
||||
ShadowWindow (Component& comp, const int shadowType, const Image imageSections [12])
|
||||
: topLeft (imageSections [shadowType * 3]),
|
||||
bottomRight (imageSections [shadowType * 3 + 1]),
|
||||
filler (imageSections [shadowType * 3 + 2]),
|
||||
type (shadowType)
|
||||
{
|
||||
setInterceptsMouseClicks (false, false);
|
||||
|
||||
if (owner.isOnDesktop())
|
||||
if (comp.isOnDesktop())
|
||||
{
|
||||
setSize (1, 1); // to keep the OS happy by not having zero-size windows
|
||||
addToDesktop (ComponentPeer::windowIgnoresMouseClicks
|
||||
| ComponentPeer::windowIsTemporary
|
||||
| ComponentPeer::windowIgnoresKeyPresses);
|
||||
}
|
||||
else if (owner.getParentComponent() != nullptr)
|
||||
else if (Component* const parent = comp.getParentComponent())
|
||||
{
|
||||
owner.getParentComponent()->addChildComponent (this);
|
||||
parent->addChildComponent (this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue