https://bugs.documentfoundation.org/show_bug.cgi?id=162263
--- Comment #18 from Patrick Luby (volunteer) <[email protected]> --- (In reply to Heiko Tietze from comment #17) > Application::GetDefaultDevice()->GetDPIScaleFactor(); in > ImplImageTree::loadDefaultImage() maybe? See > https://gerrit.libreoffice.org/c/core/+/30339 Unfortunately that is not the problem. That code has been changed quite a bit since that patch but I was able to double the scale with the following debug patch. That caused lots of images to double in size, but did not change the size or resolution of any toolbar or sidebar icons. One new piece of information: I found that the icon disk cache is caching "double sized" images (they are in a "200" subdirectory in the disk cache) so I will look at forcing icon image loading from the "icon scaled 200%" disk cache. Once I figure that out, then I can scale down to 100% size when the bitmap retrieved from the disk cache is actually drawn: diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx index f565461f8607..4dae13736252 100644 --- a/vcl/source/image/ImplImageTree.cxx +++ b/vcl/source/image/ImplImageTree.cxx @@ -170,6 +170,7 @@ void loadImageFromStream(std::shared_ptr<SvStream> const & xStream, OUString con { bool bConvertToDarkTheme = rParameters.convertToDarkTheme(); sal_Int32 aScalePercentage = rParameters.scalePercentage(); + aScalePercentage *= 2; if (rPath.endsWith(".png")) { -- You are receiving this mail because: You are the assignee for the bug.
