Browse Source

Merge pull request #871 from Lory171/x11_xft-fix-resize-issue

x11_xft fix resize issue
dumblob 6 years ago
parent
commit
5fa99df235
1 changed files with 4 additions and 0 deletions
  1. 4 0
      demo/x11_xft/nuklear_xlib.h

+ 4 - 0
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);
     if(surf->drawable) XFreePixmap(surf->dpy, surf->drawable);
     surf->drawable = XCreatePixmap(surf->dpy, surf->root, w, h,
     surf->drawable = XCreatePixmap(surf->dpy, surf->root, w, h,
         (unsigned int)DefaultDepth(surf->dpy, surf->screen));
         (unsigned int)DefaultDepth(surf->dpy, surf->screen));
+#ifdef NK_XLIB_USE_XFT
+	XftDrawChange(surf->ftdraw, surf->drawable);
+#endif
+	return;
 }
 }
 
 
 NK_INTERN void
 NK_INTERN void