Skip to content

Commit

Permalink
x11_xft fix resize issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Lory171 authored Jul 8, 2019
1 parent cc7a543 commit 7decd7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demo/x11_xft/nuklear_xlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7decd7c

Please sign in to comment.