diff --git a/demo/x11_xft/nuklear_xlib.h b/demo/x11_xft/nuklear_xlib.h index ab2b2f5..42f0701 100644 --- a/demo/x11_xft/nuklear_xlib.h +++ b/demo/x11_xft/nuklear_xlib.h @@ -178,6 +178,10 @@ nk_xsurf_resize(XSurface *surf, unsigned int w, unsigned int h) if(surf->drawable) XFreePixmap(surf->dpy, surf->drawable); surf->drawable = XCreatePixmap(surf->dpy, surf->root, w, h, (unsigned int)DefaultDepth(surf->dpy, surf->screen)); +#ifdef NK_XLIB_USE_XFT + XftDrawChange(surf->ftdraw, surf->drawable); +#endif + return; } NK_INTERN void