diff options
author | Adam Jackson <ajax@redhat.com> | 2008-05-14 16:02:05 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-05-14 16:02:05 -0400 |
commit | 166177e36bfc7bd1df03663ad89500cff056d563 (patch) | |
tree | d0de802558c0358bffd5d684eb3205f0fc977f38 /dix | |
parent | 2efe1abb6fc786a4f86464978ae0d23fc7347a98 (diff) |
Simplify default font path setup.
Diffstat (limited to 'dix')
-rw-r--r-- | dix/globals.c | 1 | ||||
-rw-r--r-- | dix/main.c | 9 |
2 files changed, 2 insertions, 8 deletions
diff --git a/dix/globals.c b/dix/globals.c index 3f12916e0..2eca277bd 100644 --- a/dix/globals.c +++ b/dix/globals.c @@ -139,7 +139,6 @@ char *defaultCursorFont = COMPILEDCURSORFONT; char *defaultDisplayClass = COMPILEDDISPLAYCLASS; FontPtr defaultFont; /* not declared in dix.h to avoid including font.h in every compilation of dix code */ -Bool loadableFonts = FALSE; CursorPtr rootCursor; Bool blackRoot=FALSE; Bool whiteRoot=FALSE; diff --git a/dix/main.c b/dix/main.c index 855050950..2e12b709f 100644 --- a/dix/main.c +++ b/dix/main.c @@ -364,13 +364,8 @@ int main(int argc, char *argv[], char *envp[]) FatalError("failed to initialize core devices"); InitFonts(); - if (loadableFonts) - SetFontPath(serverClient, 0, (unsigned char *)defaultFontPath, - &error); - else { - if (SetDefaultFontPath(defaultFontPath) != Success) - ErrorF("failed to set default font path '%s'", - defaultFontPath); + if (SetDefaultFontPath(defaultFontPath) != Success) { + ErrorF("failed to set default font path '%s'", defaultFontPath); } if (!SetDefaultFont(defaultTextFont)) { FatalError("could not open default font '%s'", defaultTextFont); |