From 8ccd9f7e5884529d1f93f449bdb6c0273ac08c2e Mon Sep 17 00:00:00 2001 From: richiehindle Date: Sun, 19 Feb 2023 22:49:18 +0000 Subject: [PATCH] Set the oversampling ratio for both high-def and standard-def displays, so that moving from one to the other always sets the appropriate ratio. /VCVRack/issues/issues/100 --- src/app/SvgPanel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/SvgPanel.cpp b/src/app/SvgPanel.cpp index 66af5a63..bfa3851a 100644 --- a/src/app/SvgPanel.cpp +++ b/src/app/SvgPanel.cpp @@ -32,6 +32,8 @@ void SvgPanel::step() { if (APP->window->pixelRatio < 2.0) { // Small details draw poorly at low DPI, so oversample when drawing to the framebuffer fb->oversample = 2.0; + } else { + fb->oversample = 1.0; } Widget::step();