From 50aeb09da7d00680e9ecf7832f41472fddc4997d Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 25 Feb 2025 17:37:19 +0100 Subject: [PATCH] mi: move StaticGrayMask and GrayScaleMask into micmap.c micmap.c is the only consumer of these, so move them into there, instead of maintaining them in the public API w/o any practical need. Signed-off-by: Enrico Weigelt, metux IT consult --- mi/micmap.c | 3 +++ mi/micmap.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mi/micmap.c b/mi/micmap.c index e20d41df8..9859e701f 100644 --- a/mi/micmap.c +++ b/mi/micmap.c @@ -43,6 +43,9 @@ #define MIN_TRUE_DEPTH 6 +#define StaticGrayMask (1 << StaticGray) +#define GrayScaleMask (1 << GrayScale) + #define ALL_VISUALS (StaticGrayMask|GrayScaleMask|StaticColorMask|\ PseudoColorMask|TrueColorMask|DirectColorMask) #define LARGE_VISUALS (TrueColorMask|DirectColorMask) diff --git a/mi/micmap.h b/mi/micmap.h index aebc02a1c..3284928a7 100644 --- a/mi/micmap.h +++ b/mi/micmap.h @@ -37,8 +37,6 @@ extern _X_EXPORT Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *, #define MAX_PSEUDO_DEPTH 10 -#define StaticGrayMask (1 << StaticGray) -#define GrayScaleMask (1 << GrayScale) #define StaticColorMask (1 << StaticColor) #define PseudoColorMask (1 << PseudoColor) #define TrueColorMask (1 << TrueColor)