Fix FREE_PIXMAP macro to use vtable instead of direct XFreePixmap
Replace XFreePixmap(dpy, p) in the FREE_PIXMAP macro with wm_backend->pixmap_free((unsigned long)p). This eliminates a hidden dpy dependency from every file that uses FREE_PIXMAP.
This commit is contained in:
parent
759225007c
commit
d87a7f9941
|
|
@ -175,7 +175,7 @@ void wTexturePaintTitlebar(struct WWindow *wwin, WTexture *texture, Pixmap *tdat
|
|||
int repaint);
|
||||
|
||||
|
||||
#define FREE_PIXMAP(p) if ((p)!=None) XFreePixmap(dpy, (p)), (p)=None
|
||||
#define FREE_PIXMAP(p) if ((p)!=None) wm_backend->pixmap_free((unsigned long)(p)), (p)=None
|
||||
|
||||
void wDrawBevel(Drawable d, unsigned width, unsigned height,
|
||||
WTexSolid *texture, int relief);
|
||||
|
|
|
|||
Loading…
Reference in New Issue