Skip to content

Commit c1acc08

Browse files
committed
Fix Linux sidebar resize glitching
1 parent 9de8b6f commit c1acc08

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/CanvasViewport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@ class CanvasViewport final : public Viewport
736736
auto const offset = currentCentre - newCentre;
737737
setViewPosition(getViewPosition() + offset);
738738

739-
// This fixes some graphical glitches on macOS and Linux, but causes resize issues on Windows
740-
#if !JUCE_WINDOWS
739+
// This fixes some graphical glitches on macOS, but causes terrible glitches anywhere else
740+
#if JUCE_MAC
741741
if(!scaleChanged) {
742742
editor->nvgSurface.renderAll();
743743
}

0 commit comments

Comments
 (0)