Plasma::Svg uses this information to know the pixel density.
Fixes rendering of svg in many places, for example now icons don't look
pixelated in the system tray when using a fancy high dpi display.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Plasma
Manual testing
Diff Detail
Diff Detail
- Repository
- R242 Plasma Framework (Library)
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage
Comment Actions
This breaks the rendering of buttons (exclusively, as long as I've seen), any idea why?
Comment Actions
Fixes rendering of svg in many places, for example now icons don't look
By editing FrameSVG? That seems unlikely.
I think you've got some results mixed up.
This patch doesn't change the resolution of anything. QPixmap::setDPR just sets metadata used when rendering using the sizes of one paint device when painting into another. However here we don't use the pixmap size, we use frame->frameSize...and then multiply it by the devicePixelRatio anyway on line 793.