Skip to content

Commit bfa3a83

Browse files
committed
Fix resize glitch on Windows
1 parent be0142a commit bfa3a83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/CanvasViewport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,9 +700,12 @@ class CanvasViewport final : public Viewport
700700

701701
cnv->getParentComponent()->setSize(getWidth(), getHeight());
702702

703+
// This fixes some graphical glitches on macOS and Linux, but causes resize issues on Windows
704+
#if !JUCE_WINDOWS
703705
if(!scaleChanged) {
704706
editor->nvgSurface.renderAll();
705707
}
708+
#endif
706709
}
707710

708711
void resized() override

0 commit comments

Comments
 (0)