dix: unexport autosetDPI

This was accidentially exported. No external driver ever had a chance
to use it yet, so unexport it now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2026-10-06 13:37:07 +02:00 • committed by Enrico Weigelt
commit 8d2974982b
4 changed files with 6 additions and 3 deletions

View file

@ -72,6 +72,9 @@ extern bool enableFontServerConnections;
extern size_t ConnectionInfoSize;
extern size_t dixConnBlockScreenStart(const char *connInfo);
/* only exported for in-tree drivers, not part of public SDK */
extern _X_EXPORT bool autosetDPI;
/*
* @brief callback right after one screen's root window has been initialized
*

View file

@ -46,6 +46,7 @@ SOFTWARE.
#include <dix-config.h>
#include <stdbool.h>
#include <X11/X.h>
#include <X11/Xmd.h>
@ -119,7 +120,7 @@ TimeStamp currentTime;
int defaultColorVisualClass = -1;
int monitorResolution = 0;
Bool autosetDPI = FALSE;
bool autosetDPI = false;
Bool explicit_display = FALSE;
char *ConnectionInfo;

View file

@ -8,7 +8,6 @@
extern _X_EXPORT const char *defaultFontPath;
extern _X_EXPORT int monitorResolution;
extern _X_EXPORT Bool autosetDPI;
extern _X_EXPORT int defaultColorVisualClass;
#endif /* !_XSERV_GLOBAL_H_ */

View file

@ -507,7 +507,7 @@ ProcessCommandLine(int argc, char *argv[])
else if (strcmp(argv[i], "-dpi") == 0) {
if (++i < argc)
if (strcmp(argv[i], "auto") == 0)
autosetDPI = TRUE;
autosetDPI = true;
else
monitorResolution = atoi(argv[i]);
else