##// END OF EJS Templates
Respect the devicePixelRatio when rendering the scene...
Andy Shaw -
r2859:e59db7a88a36
parent child
Show More
@@ -590,7 +590,9 void DeclarativeChart::renderScene()
590 QSize chartSize = m_chart->size().toSize();
590 QSize chartSize = m_chart->size().toSize();
591 if (!m_sceneImage || chartSize != m_sceneImage->size()) {
591 if (!m_sceneImage || chartSize != m_sceneImage->size()) {
592 delete m_sceneImage;
592 delete m_sceneImage;
593 m_sceneImage = new QImage(chartSize, QImage::Format_ARGB32);
593 qreal dpr = window() ? window()->devicePixelRatio() : 1.0;
594 m_sceneImage = new QImage(chartSize * dpr, QImage::Format_ARGB32);
595 m_sceneImage->setDevicePixelRatio(dpr);
594 m_sceneImageNeedsClear = true;
596 m_sceneImageNeedsClear = true;
595 }
597 }
596
598
General Comments 0
You need to be logged in to leave comments. Login now