x11_xft fix resize issue

This commit is contained in:
Lory171 2019-07-08 20:55:35 +02:00 committed by GitHub
parent cc7a5430fb
commit 7decd7c600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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