Skip to content

Commit

Permalink
Merge pull request vurtun#871 from Lory171/x11_xft-fix-resize-issue
Browse files Browse the repository at this point in the history
x11_xft fix resize issue
  • Loading branch information
dumblob authored Jul 9, 2019
2 parents cc7a543 + 7decd7c commit 5fa99df
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 5fa99df

Please sign in to comment.