mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
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:
parent
8f006fb8e1
commit
8d2974982b
4 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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_ */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue