Fix uninitialized class name in dpi handling
Make the class in the XrmGetResource call be the same as the resource name we are trying to retrieve, "Xft.dpi". Nowhere in the documentation it is mentioned that the class name can be NULL so it is better to be cautious and set it to a value that is unlikely to affect anything.
This commit is contained in:
parent
17e1dbf246
commit
03c82c22e3
@ -49,7 +49,7 @@ static double get_xft_dpi_value()
|
|||||||
char *xrmType;
|
char *xrmType;
|
||||||
XrmValue xrmValue;
|
XrmValue xrmValue;
|
||||||
|
|
||||||
if (XrmGetResource(xDB, "Xft.dpi", NULL, &xrmType, &xrmValue)) {
|
if (XrmGetResource(xDB, "Xft.dpi", "Xft.dpi", &xrmType, &xrmValue)) {
|
||||||
dpi = strtod(xrmValue.addr, NULL);
|
dpi = strtod(xrmValue.addr, NULL);
|
||||||
} else {
|
} else {
|
||||||
dpi = 0;
|
dpi = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user