From 5ef99b0a2d67a7563e6257abb770aeeec8e26d53 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 25 Feb 2025 17:32:13 +0100 Subject: [PATCH] mi: move MIN_TRUE_DEPTH define into micmap.c This .c file is the only consumer of that define, so move it there instead of carrying it around in public API. Signed-off-by: Enrico Weigelt, metux IT consult --- mi/micmap.c | 2 ++ mi/micmap.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mi/micmap.c b/mi/micmap.c index dce41a206..3e0d75741 100644 --- a/mi/micmap.c +++ b/mi/micmap.c @@ -42,6 +42,8 @@ #include "globals.h" #include "micmap.h" +#define MIN_TRUE_DEPTH 6 + #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 d558ba5df..edc56cc9a 100644 --- a/mi/micmap.h +++ b/mi/micmap.h @@ -38,7 +38,6 @@ extern _X_EXPORT Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *, int *, VisualID *, unsigned long, int, int); #define MAX_PSEUDO_DEPTH 10 -#define MIN_TRUE_DEPTH 6 #define StaticGrayMask (1 << StaticGray) #define GrayScaleMask (1 << GrayScale)