From 539ed037b4cf0efb114651fafed1cf84468ff924 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 3e0d75741..c0dc27b77 100644 --- a/mi/micmap.c +++ b/mi/micmap.c @@ -44,6 +44,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 edc56cc9a..40a04608c 100644 --- a/mi/micmap.h +++ b/mi/micmap.h @@ -39,8 +39,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)