Browse Source

Use same logic in Browser as SvgPanel for determining whether to render framebuffer with oversampling.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
d0658081bc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/app/Browser.cpp

+ 1
- 1
src/app/Browser.cpp View File

@@ -184,7 +184,7 @@ struct ModelBox : widget::OpaqueWidget {
previewWidget->addChild(zoomWidget);

fb = new widget::FramebufferWidget;
if (math::isNear(APP->window->pixelRatio, 1.0)) {
if (APP->window->pixelRatio < 2.0) {
// Small details draw poorly at low DPI, so oversample when drawing to the framebuffer
fb->oversample = 2.0;
}


Loading…
Cancel
Save