diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-14 16:05:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-14 20:34:23 +0200 |
commit | cc2a6787446f1ae6492a41c405f45a9cc8cc7d4e (patch) | |
tree | c4cc8c1adec05c5fd792bbe113848f870906b1df /vcl/inc/image.h | |
parent | 434f6a1b5a5089ff276918f9756501c91e146759 (diff) |
Related: tdf#144583 move current lok hidpi icon thing into SalGraphics
Change-Id: If34a2b15aebc5316783d72564ede23e02db04302
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139944
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc/image.h')
-rw-r--r-- | vcl/inc/image.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 <vcl/bitmapex.hxx> +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 |