Mercurial > hg > xemacs-beta
diff src/frame-x.c @ 5237:6466bc9ebf15
* console-x-impl.h (DEVICE_X_XFTDRAW): Define, instead of
FRAME_X_FTDRAW.
(struct x_device): Add XftDraw field.
(struct x_frame): Remove XftDraw field.
Move XftDraw from frame to device for improved caching.
* device-x.c (x_delete_device): Free XftDraw here.
* frame-x.c (x_delete_frame): Remove freeing of XftDraw.
* redisplay-xlike-inc.c (XLIKE_output_string): Use
DEVICE_X_XFTDRAW instead of FRAME_X_XFTDRAW when lazily creating
XftDraw structure.
author | Jeff Sparkes <jsparkes@gmail.com> |
---|---|
date | Wed, 23 Jun 2010 08:04:18 -0400 |
parents | 97eb4942aec8 |
children | f19e6bc25969 |
line wrap: on
line diff
--- a/src/frame-x.c Sun Jun 13 23:54:13 2010 +0900 +++ b/src/frame-x.c Wed Jun 23 08:04:18 2010 -0400 @@ -2614,19 +2614,6 @@ DtDndDropUnregister (FRAME_X_TEXT_WIDGET (f)); #endif /* HAVE_CDE */ -#ifdef HAVE_XFT - /* If we have an XftDraw structure, we need to free it here. - We can't ever have an XftDraw without a Display, so we are safe - to free it in here, and we avoid too much playing around with the - malloc checking hooks this way. */ - if (FRAME_X_XFTDRAW (f)) - { - XftDrawDestroy (FRAME_X_XFTDRAW (f)); - FRAME_X_XFTDRAW (f) = NULL; - } -#endif - - assert (FRAME_X_SHELL_WIDGET (f) != 0); dpy = XtDisplay (FRAME_X_SHELL_WIDGET (f));