mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-01 03:10:06 +00:00
More iOS touch fixes. Tweaks to AudioProcessorGraph and PopupMenu, ComponentPeer.
This commit is contained in:
parent
4310106c58
commit
97f8de4323
11 changed files with 114 additions and 45 deletions
|
|
@ -42,7 +42,7 @@ BEGIN_JUCE_NAMESPACE
|
|||
|
||||
//==============================================================================
|
||||
static Array <ComponentPeer*> heavyweightPeers;
|
||||
|
||||
static uint32 lastUniqueID = 1;
|
||||
|
||||
//==============================================================================
|
||||
ComponentPeer::ComponentPeer (Component* const component_, const int styleFlags_)
|
||||
|
|
@ -51,6 +51,7 @@ ComponentPeer::ComponentPeer (Component* const component_, const int styleFlags_
|
|||
lastPaintTime (0),
|
||||
constrainer (nullptr),
|
||||
lastDragAndDropCompUnderMouse (nullptr),
|
||||
uniqueID (lastUniqueID += 2), // increment by 2 so that this can never hit 0
|
||||
fakeMouseMessageSent (false),
|
||||
isWindowMinimised (false)
|
||||
{
|
||||
|
|
@ -60,7 +61,6 @@ ComponentPeer::ComponentPeer (Component* const component_, const int styleFlags_
|
|||
ComponentPeer::~ComponentPeer()
|
||||
{
|
||||
heavyweightPeers.removeValue (this);
|
||||
|
||||
Desktop::getInstance().triggerFocusCallback();
|
||||
}
|
||||
|
||||
|
|
@ -120,9 +120,9 @@ void ComponentPeer::handlePaint (LowLevelGraphicsContext& contextToPaintTo)
|
|||
{
|
||||
Graphics g (&contextToPaintTo);
|
||||
|
||||
#if JUCE_ENABLE_REPAINT_DEBUGGING
|
||||
#if JUCE_ENABLE_REPAINT_DEBUGGING
|
||||
g.saveState();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
JUCE_TRY
|
||||
{
|
||||
|
|
@ -130,7 +130,7 @@ void ComponentPeer::handlePaint (LowLevelGraphicsContext& contextToPaintTo)
|
|||
}
|
||||
JUCE_CATCH_EXCEPTION
|
||||
|
||||
#if JUCE_ENABLE_REPAINT_DEBUGGING
|
||||
#if JUCE_ENABLE_REPAINT_DEBUGGING
|
||||
// enabling this code will fill all areas that get repainted with a colour overlay, to show
|
||||
// clearly when things are being repainted.
|
||||
g.restoreState();
|
||||
|
|
@ -139,7 +139,7 @@ void ComponentPeer::handlePaint (LowLevelGraphicsContext& contextToPaintTo)
|
|||
(uint8) Random::getSystemRandom().nextInt (255),
|
||||
(uint8) Random::getSystemRandom().nextInt (255),
|
||||
(uint8) 0x50));
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/** If this fails, it's probably be because your CPU floating-point precision mode has
|
||||
been set to low.. This setting is sometimes changed by things like Direct3D, and can
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue