Browse Source

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

tags/v2.3.0
richiehindle 1 year ago
parent
commit
8ccd9f7e58
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/app/SvgPanel.cpp

+ 2
- 0
src/app/SvgPanel.cpp View File

@@ -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();


Loading…
Cancel
Save