diff options
author | Dmitriy Shilin <dshil@fastmail.com> | 2018-12-30 03:29:26 -0800 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-31 12:50:16 +0100 |
commit | 7a308efc48ddc03e689e0d7847f594fb882af0c1 (patch) | |
tree | 6e00c31bf204c5b377d61900f6a5c3ef064aba60 | |
parent | 5a80e3bfdd38f7f604ce0c3eb30ce08a0910598d (diff) |
vcl/win/gdi: replace PALETTEENTRY object with constant values
Change-Id: I2a06c202f1340b735d132f68db97b5980555c99a
Reviewed-on: https://gerrit.libreoffice.org/65741
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | vcl/win/gdi/gdiimpl.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx index 7b489e32261a..b9041acdefd4 100644 --- a/vcl/win/gdi/gdiimpl.cxx +++ b/vcl/win/gdi/gdiimpl.cxx @@ -193,14 +193,7 @@ bool IsPaletteColor(BYTE nRed, BYTE nGreen, BYTE nBlue) bool IsExtraColor(BYTE nRed, BYTE nGreen, BYTE nBlue) { - static PALETTEENTRY aImplExtraColor1 = - { - 0, 184, 255, 0 - }; - - return aImplExtraColor1.peRed == nRed && - aImplExtraColor1.peGreen == nGreen && - aImplExtraColor1.peBlue == nBlue; + return (nRed == 0) && (nGreen == 184) && (nBlue == 255); } bool ImplIsPaletteEntry(BYTE nRed, BYTE nGreen, BYTE nBlue) |