diff options
Diffstat (limited to 'src/glx/mini/miniglx.c')
-rw-r--r-- | src/glx/mini/miniglx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glx/mini/miniglx.c b/src/glx/mini/miniglx.c index 00144a5..d751c2e 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); |