Simplify default font path setup.
This commit is contained in:
parent
2efe1abb6f
commit
166177e36b
|
@ -139,7 +139,6 @@ char *defaultCursorFont = COMPILEDCURSORFONT;
|
||||||
char *defaultDisplayClass = COMPILEDDISPLAYCLASS;
|
char *defaultDisplayClass = COMPILEDDISPLAYCLASS;
|
||||||
FontPtr defaultFont; /* not declared in dix.h to avoid including font.h in
|
FontPtr defaultFont; /* not declared in dix.h to avoid including font.h in
|
||||||
every compilation of dix code */
|
every compilation of dix code */
|
||||||
Bool loadableFonts = FALSE;
|
|
||||||
CursorPtr rootCursor;
|
CursorPtr rootCursor;
|
||||||
Bool blackRoot=FALSE;
|
Bool blackRoot=FALSE;
|
||||||
Bool whiteRoot=FALSE;
|
Bool whiteRoot=FALSE;
|
||||||
|
|
|
@ -364,13 +364,8 @@ int main(int argc, char *argv[], char *envp[])
|
||||||
FatalError("failed to initialize core devices");
|
FatalError("failed to initialize core devices");
|
||||||
|
|
||||||
InitFonts();
|
InitFonts();
|
||||||
if (loadableFonts)
|
if (SetDefaultFontPath(defaultFontPath) != Success) {
|
||||||
SetFontPath(serverClient, 0, (unsigned char *)defaultFontPath,
|
ErrorF("failed to set default font path '%s'", defaultFontPath);
|
||||||
&error);
|
|
||||||
else {
|
|
||||||
if (SetDefaultFontPath(defaultFontPath) != Success)
|
|
||||||
ErrorF("failed to set default font path '%s'",
|
|
||||||
defaultFontPath);
|
|
||||||
}
|
}
|
||||||
if (!SetDefaultFont(defaultTextFont)) {
|
if (!SetDefaultFont(defaultTextFont)) {
|
||||||
FatalError("could not open default font '%s'", defaultTextFont);
|
FatalError("could not open default font '%s'", defaultTextFont);
|
||||||
|
|
|
@ -1184,9 +1184,6 @@ OsVendorInit()
|
||||||
signal(SIGCHLD, SIG_DFL); /* Need to wait for child processes */
|
signal(SIGCHLD, SIG_DFL); /* Need to wait for child processes */
|
||||||
#endif
|
#endif
|
||||||
OsDelayInitColors = TRUE;
|
OsDelayInitColors = TRUE;
|
||||||
#ifndef BUILTIN_FONTS
|
|
||||||
loadableFonts = TRUE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!beenHere)
|
if (!beenHere)
|
||||||
xf86LogInit();
|
xf86LogInit();
|
||||||
|
|
|
@ -17,7 +17,6 @@ extern Bool screenSaverSuspended;
|
||||||
|
|
||||||
extern char *defaultFontPath;
|
extern char *defaultFontPath;
|
||||||
extern int monitorResolution;
|
extern int monitorResolution;
|
||||||
extern Bool loadableFonts;
|
|
||||||
extern int defaultColorVisualClass;
|
extern int defaultColorVisualClass;
|
||||||
|
|
||||||
extern Bool Must_have_memory;
|
extern Bool Must_have_memory;
|
||||||
|
|
Loading…
Reference in New Issue