diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-10-14 09:17:35 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-10-14 09:17:35 +0200 |
commit | 629baf05f63efcb883c67e0d29a4fab704de8845 (patch) | |
tree | 099d4b2fa5fc47a0df67eb30557140b93c48c202 /include | |
parent | c8b31f089d7c2f172567968ee9a5299c6aa55127 (diff) |
Revert "Unused code removal DrawGradientWallpaper"
Seems to be used, since IsGradient() actually can be true.
This reverts commit fe4412c8850bd1212dce786510dd61ddd6c43b36.
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/outdev.hxx | 3 | ||||
-rw-r--r-- | include/vcl/window.hxx | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 33908fcf395d..f4cbc5f06704 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -999,6 +999,9 @@ public: virtual void Erase(); virtual void Erase( const Rectangle& rRect ) { DrawWallpaper( rRect, GetBackground() ); } +protected: + virtual void DrawGradientWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper ); + private: SAL_DLLPRIVATE void DrawWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper ); SAL_DLLPRIVATE void DrawColorWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper ); diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 9e0bbbcbe92f..308760b3b357 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -812,6 +812,12 @@ protected: virtual void ClipToPaintRegion( Rectangle& rDstRect ) override; virtual bool UsePolyPolygonForComplexGradient() override; + virtual void DrawGradientWallpaper(long nX, long nY, long nWidth, long nHeight, + const Wallpaper& rWallpaper) override + { + OutputDevice::DrawGradientWallpaper(nX, nY, nWidth, nHeight, rWallpaper); + } + virtual void ApplySettings(vcl::RenderContext& rRenderContext); public: bool HasMirroredGraphics() const override; |