diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-04-07 17:54:42 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-04-07 03:01:24 -0500 |
commit | 48d85514470e7b44b110157d39fd67855f0a794c (patch) | |
tree | 3f9723e0a8f3f7f4fdb9c2f26a376204d4b919d0 /include | |
parent | 3eac9b17198b3c94666869b18f9230be6f14c60c (diff) |
Refactored OutputDevice::DrawGradient
There are two version of OutputDevice::DrawGradient(). They both have
common code, I have moved this into their own private functions to
allow for code reuse.
The first function checks to see if the drawing mode is
DRAWMODE_BLACKGRADIENT, DRAWMODE_WHITEGRADIENT or
DRAWMODE_SETTINGSGRADIENT (for Window background color) - this
just sets the color to black (for XOR operations), white (mainly
used for printing) or the background color of a Window (not sure
what this is used for!).
The second function sets grayscale start and end colors.
Change-Id: Idaa85c3b5cfbd8a211fd7b0714eeb8e5b9e9e434
Reviewed-on: https://gerrit.libreoffice.org/8880
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/outdev.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 037d6d12746f..5c090822c525 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -866,6 +866,9 @@ private: bool DrawTransparentNatively( const PolyPolygon& rPolyPoly, sal_uInt16 nTransparencePercent ); + Color GetSingleColorGradientFill(); + void SetGrayscaleColors( Gradient &rGradient ); + public: virtual ~OutputDevice(); |