diff --git a/src/plasma/framesvg.cpp b/src/plasma/framesvg.cpp --- a/src/plasma/framesvg.cpp +++ b/src/plasma/framesvg.cpp @@ -612,6 +612,7 @@ } frame->cachedBackground = QPixmap(size); + frame->cachedBackground.setDevicePixelRatio(q->devicePixelRatio()); frame->cachedBackground.fill(Qt::transparent); QPainter p(&frame->cachedBackground); p.setCompositionMode(QPainter::CompositionMode_Source); @@ -745,6 +746,7 @@ if (frame->tileCenter) { QSize centerTileSize = q->elementSize(centerElementId); QPixmap center(centerTileSize); + center.setDevicePixelRatio(q->devicePixelRatio()); center.fill(Qt::transparent); QPainter centerPainter(¢er); @@ -781,6 +783,7 @@ q->paint(&p, FrameSvgHelpers::sectionRect(borders, contentRect, frame->frameSize * q->devicePixelRatio()), side); } else { QPixmap px(size); + px.setDevicePixelRatio(q->devicePixelRatio()); px.fill(Qt::transparent); QPainter sidePainter(&px);