summaryrefslogtreecommitdiff
path: root/dix/main.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-05-14 16:02:05 -0400
committerAdam Jackson <ajax@redhat.com>2008-05-14 16:02:05 -0400
commit166177e36bfc7bd1df03663ad89500cff056d563 (patch)
treed0de802558c0358bffd5d684eb3205f0fc977f38 /dix/main.c
parent2efe1abb6fc786a4f86464978ae0d23fc7347a98 (diff)
Simplify default font path setup.
Diffstat (limited to 'dix/main.c')
-rw-r--r--dix/main.c9
1 files changed, 2 insertions, 7 deletions
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);