Do not assume Xrender merely because Cairo
Problem reported by Andrea Corallo in: https://lists.gnu.org/r/emacs-devel/2021-01/msg00225.html * src/xterm.c (x_term_init) [USE_CAIRO && !HAVE_XRENDER]: Do not call XRenderQueryExtension.
This commit is contained in:
parent
fa574e68de
commit
97226aacfd
1 changed files with 4 additions and 4 deletions
|
@ -13035,13 +13035,13 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
|
|||
or larger than other for other applications, even if it is the same
|
||||
font name (monospace-10 for example). */
|
||||
|
||||
# ifdef HAVE_XRENDER
|
||||
int event_base, error_base;
|
||||
char *v;
|
||||
double d;
|
||||
|
||||
XRenderQueryExtension (dpyinfo->display, &event_base, &error_base);
|
||||
# endif
|
||||
|
||||
v = XGetDefault (dpyinfo->display, "Xft", "dpi");
|
||||
char *v = XGetDefault (dpyinfo->display, "Xft", "dpi");
|
||||
double d;
|
||||
if (v != NULL && sscanf (v, "%lf", &d) == 1)
|
||||
dpyinfo->resy = dpyinfo->resx = d;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue