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 /include/vcl | |
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>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/bitmap.hxx | 2 |
1 files changed, 2 insertions, 0 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; |