XFreeFont(display, largefont);
XFreeFont(display, bigfont);
-#ifdef HAVE_XFT
+// bug in X causes XRenderExtensionInfo to be damaged if this is done here
+// left to be done in XCloseDisplay by Xlib.
+#if defined(HAVE_XFT) && 0
if(bigfont_xft)
XftFontClose (display, (XftFont*)bigfont_xft);
if(largefont_xft)
#ifndef SINGLE_THREAD
#ifdef HAVE_GL
if( (options & GLX_DISPLAY) != 0 && get_resources()->get_synchronous() ) {
- printf("BC_WindowBase::~BC_WindowBase window deleted but opengl deletion is not\n"
- "implemented for BC_Pixmap.\n");
+ printf(_("BC_WindowBase::~BC_WindowBase window deleted but opengl deletion is not\n"
+ "implemented for BC_Pixmap.\n"));
get_resources()->get_synchronous()->delete_display(this);
}
else
printf("BC_WindowBase::init_display: cannot connect to X server %s\n",
display_name);
if(getenv("DISPLAY") == NULL) {
- printf("'DISPLAY' environment variable not set.\n");
+ printf(_("'DISPLAY' environment variable not set.\n"));
exit(1);
}
else {
void BC_WindowBase::init_xft()
{
#ifdef HAVE_XFT
-// does not seem to be thread safe (07/06/2015)
- static Mutex xft_lock;
- xft_lock.lock("BC_WindowBase::init_xft");
if(!(smallfont_xft =
(resources.small_font_xft[0] == '-' ?
XftFontOpenXlfd(display, screen, resources.small_font_xft) :
get_resources()->use_xft = 0;
exit(1);
}
- xft_lock.unlock();
#endif // HAVE_XFT
}