mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
OpenGL: Update native context window position when viewport size or scale changes in OpenGLContext::CachedImage::updateViewportSize()
This commit is contained in:
parent
c07c9f89fe
commit
558ca3e5e6
1 changed files with 2 additions and 0 deletions
|
|
@ -296,6 +296,8 @@ public:
|
|||
transform = AffineTransform::scale ((float) newArea.getWidth() / (float) localBounds.getWidth(),
|
||||
(float) newArea.getHeight() / (float) localBounds.getHeight());
|
||||
|
||||
nativeContext->updateWindowPosition (peer->getAreaCoveredBy (component));
|
||||
|
||||
if (canTriggerUpdate)
|
||||
invalidateAll();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue