summaryrefslogtreecommitdiffstats
path: root/src/glx/mini/miniglx.c
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2004-04-14 01:33:27 +0000
committerDave Airlie <airliedfreedesktop.org>2004-04-14 01:33:27 +0000
commit5d8f7b1197f641edbc0ed18d96a431e95e1923b5 (patch)
tree99fe5436b2a0bfff9a9f37324be870d91b196595 /src/glx/mini/miniglx.c
parentc50d77a7f1b6fcfd9dd7be47ddadf5fad34a25c3 (diff)
add agpmode to miniglx config file
Diffstat (limited to 'src/glx/mini/miniglx.c')
-rw-r--r--src/glx/mini/miniglx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glx/mini/miniglx.c b/src/glx/mini/miniglx.c
index 00144a5f6a3..d751c2efa5c 100644
--- a/src/glx/mini/miniglx.c
+++ b/src/glx/mini/miniglx.c
@@ -793,6 +793,7 @@ static int __read_config_file( Display *dpy )
dpy->driverContext.bpp = 32;
dpy->driverContext.cpp = 4;
dpy->rotateMode = 0;
+ dpy->driverContext.agpmode = 1;
fname = getenv("MINIGLX_CONF");
if (!fname) fname = "/etc/miniglx.conf";
@@ -858,6 +859,10 @@ static int __read_config_file( Display *dpy )
fprintf(stderr, "malformed bpp: %s\n", opt);
dpy->driverContext.cpp = dpy->driverContext.bpp / 8;
}
+ else if (strcmp(opt, "agpmode") == 0) {
+ if (sscanf(val, "%d", &dpy->driverContext.agpmode) != 1)
+ fprintf(stderr, "malformed agpmode: %s\n", opt);
+ }
}
fclose(file);