mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-07 00:35:53 +01:00
support for compiling with xft2
This commit is contained in:
@@ -110,7 +110,7 @@ libWUtil_a_SOURCES = \
|
||||
CPPFLAGS = @CPPFLAGS@ -DLOCALEDIR=\"$(NLSDIR)\"
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/WINGs/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
|
||||
-DRESOURCE_PATH=\"$(datadir)/WINGs\" @HEADER_SEARCH_PATH@ -DDEBUG
|
||||
-DRESOURCE_PATH=\"$(datadir)/WINGs\" @XFTFLAGS@ @HEADER_SEARCH_PATH@ -DDEBUG
|
||||
|
||||
|
||||
wcolorpanel.o: wcolorpanel.c
|
||||
|
||||
@@ -629,7 +629,12 @@ WMCreateScreenWithRContext(Display *display, int screen, RContext *context)
|
||||
scrPtr->xftFontSetCache = WMCreateHashTable(WMStringPointerHashCallbacks);
|
||||
|
||||
#ifdef XFT
|
||||
|
||||
# ifdef XFT2
|
||||
scrPtr->hasXftSupport = 1;
|
||||
# else
|
||||
scrPtr->hasXftSupport = XftDefaultHasRender(scrPtr->display);
|
||||
# endif
|
||||
|
||||
scrPtr->xftdraw = XftDrawCreate(scrPtr->display, W_DRAWABLE(scrPtr),
|
||||
scrPtr->visual, scrPtr->colormap);
|
||||
|
||||
Reference in New Issue
Block a user