diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-08-17 15:05:51 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-08-17 15:19:19 +0100 |
commit | 5109fdb1e6867439d45da5a7cc8effb9bcc75d85 (patch) | |
tree | 5efc6be083cc265253f657577c70144fdbe38255 /src/cairo-xlib-screen.c | |
parent | 4f4621adbfa67fb61b02e7e650a59a96a8c974ef (diff) |
[xlib] Return the integer from XGetDefault().
If the default value does not match a fontconfig constant, actually return
the parsed token.
Diffstat (limited to 'src/cairo-xlib-screen.c')
-rw-r--r-- | src/cairo-xlib-screen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c index ebce8a2f9..7ce252c77 100644 --- a/src/cairo-xlib-screen.c +++ b/src/cairo-xlib-screen.c @@ -106,7 +106,6 @@ get_integer_default (Display *dpy, const char *option, int *value) { - int i; char *v, *e; v = XGetDefault (dpy, "Xft", option); @@ -116,7 +115,7 @@ get_integer_default (Display *dpy, return TRUE; #endif - i = strtol (v, &e, 0); + *value = strtol (v, &e, 0); if (e != v) return TRUE; } |