diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2020-12-18 15:47:59 +1100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-12-19 04:17:49 +0100 |
commit | 26f504eccfcfaa548f0648703925360e08d4a0c2 (patch) | |
tree | 031e7069151d5bb8c73612e395e6535a4efb543e | |
parent | f1469adf0e81e6e7c8aa650c95d9e7a93bb18e85 (diff) |
vcl: move GAMMA define to bitmap.hxx
Change-Id: I6ffe438fa4b12d51eecb73a79c9443240e1d4695
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107949
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | include/vcl/bitmap.hxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/bitmap3.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/gdimtf.cxx | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 810ece4e5286..ef27679bc9fc 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -30,6 +30,8 @@ #include <o3tl/typed_flags_set.hxx> #include <memory> +#define GAMMA( _def_cVal, _def_InvGamma ) (static_cast<sal_uInt8>(MinMax(FRound(pow( _def_cVal/255.0,_def_InvGamma)*255.0),0,255))) + class Color; template <typename Arg, typename Ret> class Link; diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx index cd7232ed1b82..6f760d0f1602 100644 --- a/vcl/source/gdi/bitmap3.cxx +++ b/vcl/source/gdi/bitmap3.cxx @@ -46,8 +46,6 @@ #include <memory> -#define GAMMA( _def_cVal, _def_InvGamma ) (static_cast<sal_uInt8>(MinMax(FRound(pow( _def_cVal/255.0,_def_InvGamma)*255.0),0,255))) - #define CALC_ERRORS \ nTemp = p1T[nX++] >> 12; \ nBErr = MinMax( nTemp, 0, 255 ); \ diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index 02f47b5c6bba..980d1170bc7e 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -49,8 +49,6 @@ using namespace com::sun::star; -#define GAMMA( _def_cVal, _def_InvGamma ) (static_cast<sal_uInt8>(MinMax(FRound(pow( _def_cVal/255.0,_def_InvGamma)*255.0),0,255))) - namespace { struct ImplColAdjustParam |