[Libreoffice-commits] core.git: vcl/win
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Dec 31 11:50:36 UTC 2018
vcl/win/gdi/gdiimpl.cxx | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
New commits:
commit 7a308efc48ddc03e689e0d7847f594fb882af0c1
Author: Dmitriy Shilin <dshil at fastmail.com>
AuthorDate: Sun Dec 30 03:29:26 2018 -0800
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
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 <noel.grandin at collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>
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)
More information about the Libreoffice-commits
mailing list