Kaydet (Commit) 7a308efc authored tarafından Dmitriy Shilin's avatar Dmitriy Shilin Kaydeden (comit) Noel Grandin

vcl/win/gdi: replace PALETTEENTRY object with constant values

Change-Id: I2a06c202f1340b735d132f68db97b5980555c99a
Reviewed-on: https://gerrit.libreoffice.org/65741Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 5a80e3bf
...@@ -193,14 +193,7 @@ bool IsPaletteColor(BYTE nRed, BYTE nGreen, BYTE nBlue) ...@@ -193,14 +193,7 @@ bool IsPaletteColor(BYTE nRed, BYTE nGreen, BYTE nBlue)
bool IsExtraColor(BYTE nRed, BYTE nGreen, BYTE nBlue) bool IsExtraColor(BYTE nRed, BYTE nGreen, BYTE nBlue)
{ {
static PALETTEENTRY aImplExtraColor1 = return (nRed == 0) && (nGreen == 184) && (nBlue == 255);
{
0, 184, 255, 0
};
return aImplExtraColor1.peRed == nRed &&
aImplExtraColor1.peGreen == nGreen &&
aImplExtraColor1.peBlue == nBlue;
} }
bool ImplIsPaletteEntry(BYTE nRed, BYTE nGreen, BYTE nBlue) bool ImplIsPaletteEntry(BYTE nRed, BYTE nGreen, BYTE nBlue)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment