From cc2a6787446f1ae6492a41c405f45a9cc8cc7d4e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 14 Sep 2022 16:05:38 +0100 Subject: Related: tdf#144583 move current lok hidpi icon thing into SalGraphics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If34a2b15aebc5316783d72564ede23e02db04302 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139944 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/inc/image.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vcl/inc/image.h') diff --git a/vcl/inc/image.h b/vcl/inc/image.h index c049e27072e7..5d0cc9fcb671 100644 --- a/vcl/inc/image.h +++ b/vcl/inc/image.h @@ -22,6 +22,8 @@ #include +class SalGraphics; + class ImplImage { private: @@ -36,7 +38,7 @@ private: BitmapEx maBitmapEx; BitmapEx maDisabledBitmapEx; - bool loadStockAtScale(double fScale, BitmapEx &rBitmapEx); + bool loadStockAtScale(SalGraphics* pGraphics, BitmapEx &rBitmapEx); public: ImplImage(const BitmapEx& rBitmapEx); @@ -57,7 +59,7 @@ public: /// Legacy - the original bitmap BitmapEx const & getBitmapEx(bool bDisabled = false); /// Taking account of HiDPI scaling - BitmapEx const & getBitmapExForHiDPI(bool bDisabled = false); + BitmapEx const & getBitmapExForHiDPI(bool bDisabled, SalGraphics* pGraphics); bool isEqual(const ImplImage &ref) const; bool isSizeEmpty() const -- cgit