diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2014-12-15 18:36:32 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2014-12-15 18:38:09 +0100 |
commit | 9dc134a6df9255b4ca294cd2e9b88026624e6125 (patch) | |
tree | 1ae7402f0e613cd449c19f4fdba46d3370d86165 /include | |
parent | 72d8747ad95dbde1d3511b0fe48cd72999a43faf (diff) |
do not hardcode what specific "generic" bitmap scaling operations use
I.e. make it possible for the opengl backend to decide to use a different
scaling algorithm.
Change-Id: I36e76de071797129c7636b3048c93bc6e5d93aca
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/bitmap.hxx | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 80b76e4fb1c1..26a221c6a226 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -35,18 +35,17 @@ #define BMP_SCALE_NONE 0x00000000UL -#define BMP_SCALE_FAST 0x00000001UL -#define BMP_SCALE_INTERPOLATE 0x00000002UL -#define BMP_SCALE_SUPER 0x00000003UL -#define BMP_SCALE_LANCZOS 0x00000004UL -#define BMP_SCALE_BICUBIC 0x00000005UL -#define BMP_SCALE_BILINEAR 0x00000006UL -#define BMP_SCALE_BOX 0x00000007UL - -// Aliases, try to use these two (or BMP_SCALE_FAST/BMP_SCALE_NONE), -// use a specific algorithm only if you really need to. -#define BMP_SCALE_BESTQUALITY BMP_SCALE_LANCZOS -#define BMP_SCALE_DEFAULT BMP_SCALE_SUPER +// Try to preferably use these. +#define BMP_SCALE_DEFAULT 0x00000001UL +#define BMP_SCALE_FAST 0x00000002UL +#define BMP_SCALE_BESTQUALITY 0x00000003UL +// Specific algorithms, use only if you really need to. +#define BMP_SCALE_INTERPOLATE 0x00000004UL +#define BMP_SCALE_SUPER 0x00000005UL +#define BMP_SCALE_LANCZOS 0x00000006UL +#define BMP_SCALE_BICUBIC 0x00000007UL +#define BMP_SCALE_BILINEAR 0x00000008UL +#define BMP_SCALE_BOX 0x00000009UL #define BMP_DITHER_NONE 0x00000000UL |