From 7decd7c6006b92a1291ed8b7d2ee9b930ad3175c Mon Sep 17 00:00:00 2001 From: Lory171 <52658839+Lory171@users.noreply.github.com> Date: Mon, 8 Jul 2019 20:55:35 +0200 Subject: [PATCH] x11_xft fix resize issue --- demo/x11_xft/nuklear_xlib.h | 4 ++++ 1 file changed, 4 insertions(+) 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