|
|
@@ -214,7 +214,7 @@ public: |
|
|
|
//==============================================================================
|
|
|
|
void paint (Graphics&) override
|
|
|
|
{
|
|
|
|
updateViewportSize (false);
|
|
|
|
updateViewportSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool invalidateAll() override
|
|
|
@@ -352,7 +352,7 @@ public: |
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void updateViewportSize (bool canTriggerUpdate)
|
|
|
|
void updateViewportSize()
|
|
|
|
{
|
|
|
|
JUCE_ASSERT_MESSAGE_THREAD
|
|
|
|
|
|
|
@@ -400,9 +400,7 @@ public: |
|
|
|
(float) newArea.getHeight() / (float) localBounds.getHeight());
|
|
|
|
|
|
|
|
nativeContext->updateWindowPosition (peer->getAreaCoveredBy (component));
|
|
|
|
|
|
|
|
if (canTriggerUpdate)
|
|
|
|
invalidateAll();
|
|
|
|
invalidateAll();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -420,7 +418,7 @@ public: |
|
|
|
|
|
|
|
if (lastScreenBounds != screenBounds)
|
|
|
|
{
|
|
|
|
updateViewportSize (true);
|
|
|
|
updateViewportSize();
|
|
|
|
lastScreenBounds = screenBounds;
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -523,7 +521,7 @@ public: |
|
|
|
|
|
|
|
void handleResize()
|
|
|
|
{
|
|
|
|
updateViewportSize (true);
|
|
|
|
updateViewportSize();
|
|
|
|
|
|
|
|
#if JUCE_MAC
|
|
|
|
if (hasInitialised)
|
|
|
@@ -1052,7 +1050,7 @@ private: |
|
|
|
if (auto* cachedImage = CachedImage::get (comp))
|
|
|
|
{
|
|
|
|
cachedImage->start(); // (must wait until this is attached before starting its thread)
|
|
|
|
cachedImage->updateViewportSize (true);
|
|
|
|
cachedImage->updateViewportSize();
|
|
|
|
|
|
|
|
startTimer (400);
|
|
|
|
}
|
|
|
|