vcl/win/gdi/gdiimpl.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
New commits: commit 7a308efc48ddc03e689e0d7847f594fb882af0c1 Author: Dmitriy Shilin <[email protected]> AuthorDate: Sun Dec 30 03:29:26 2018 -0800 Commit: Noel Grandin <[email protected]> CommitDate: Mon Dec 31 12:50:16 2018 +0100 vcl/win/gdi: replace PALETTEENTRY object with constant values Change-Id: I2a06c202f1340b735d132f68db97b5980555c99a Reviewed-on: https://gerrit.libreoffice.org/65741 Reviewed-by: Noel Grandin <[email protected]> Tested-by: Noel Grandin <[email protected]> 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) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
