diff --git a/julia_display.cpp b/julia_display.cpp index ccc3832..998b407 100644 --- a/julia_display.cpp +++ b/julia_display.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "julia_display.hpp" namespace qmlwrap @@ -17,7 +18,8 @@ void JuliaDisplay::paint(QPainter *painter) } else if(m_svg_renderer != nullptr) { - m_svg_renderer->render(painter); + const qreal dpr = this->window()->effectiveDevicePixelRatio(); + m_svg_renderer->render(painter, QRectF(QPointF(0,0),QSizeF(painter->device()->width()/dpr,painter->device()->height()/dpr))); } }