summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-12-09 23:27:54 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-12-09 23:47:59 +0100
commit681c2c3f59863d1f2d0123a92ee63baf84e18dfc (patch)
tree6248ce09c857a9acf1cd9683a7597215cd9c2bee /include/vcl
parent9b71cb737174c4a3eb9a1bcdbc5424cf34d6e6a6 (diff)
split markers for galaxy theme, when scaling use splitted markers
For markers (resize markers, anchors,...) we contain them all in one image atlas. This was generally done because of resource limitiations in Windows 95/98 which aren't a problem anymore in present systems. This is however problematic in HiDPI as we scale the image and the coordinates of aren't correct anymore. Another problem is that it uses its own cache instead of common cache in ImplImageTree. So this commit extracts all the markers into its own images for galaxy theme and uses them when we scale. In the future when we extracted all the markers to its own images for all icon themes we can remvoe the old code with the image atlas. Change-Id: Ibee181b529d30e20050df8cd396d338bd53532c0
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/BitmapTools.hxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/vcl/BitmapTools.hxx b/include/vcl/BitmapTools.hxx
index 8be16886fd96..51ae59a097a8 100644
--- a/include/vcl/BitmapTools.hxx
+++ b/include/vcl/BitmapTools.hxx
@@ -15,19 +15,16 @@
#include <vcl/implimagetree.hxx>
-namespace vcl
-{
+namespace vcl {
+namespace bitmap {
-namespace bitmap
-{
+BitmapEx VCL_DLLPUBLIC loadFromName(const OUString& rFileName, const ImageLoadFlags eFlags = ImageLoadFlags::NONE);
BitmapEx VCL_DLLPUBLIC loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags = ImageLoadFlags::NONE);
void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScaleFactor = 1.0);
-}
-
-}
+}} // end vcl::bitmap
#endif // INCLUDED_VCL_BITMAP_TOOLS_HXX