mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-16 12:00:39 +01:00
[xlib] Return the integer from XGetDefault().
If the default value does not match a fontconfig constant, actually return the parsed token.
This commit is contained in:
parent
4f4621adbf
commit
5109fdb1e6
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue