opnsense-ports/textproc/uim/files/patch-xim_convdisp.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

46 lines
1.5 KiB
C++

--- ./xim/convdisp.cpp.orig 2009-01-21 11:16:35.000000000 +0900
+++ ./xim/convdisp.cpp 2009-01-23 02:41:58.000000000 +0900
@@ -87,14 +87,14 @@
gXftFont = XftFontOpen(XimServer::gDpy, DefaultScreen(XimServer::gDpy),
XFT_FAMILY, XftTypeString, fontname,
XFT_PIXEL_SIZE, XftTypeDouble, (double)DEFAULT_FONT_SIZE,
- NULL);
+ (char *)NULL);
gXftFontLocale = strdup(setlocale(LC_CTYPE, NULL));
// maybe not needed, but in case it return NULL...
if (!gXftFont) {
gXftFont = XftFontOpen(XimServer::gDpy, DefaultScreen(XimServer::gDpy),
XFT_FAMILY, XftTypeString, "Sans",
XFT_PIXEL_SIZE, XftTypeDouble, (double)DEFAULT_FONT_SIZE,
- NULL);
+ (char *)NULL);
}
}
@@ -112,7 +112,7 @@
DefaultScreen(XimServer::gDpy),
XFT_FAMILY, XftTypeString, fontname,
XFT_PIXEL_SIZE, XftTypeDouble, (double)DEFAULT_FONT_SIZE,
- NULL);
+ (char *)NULL);
if (xftfont) {
if (gXftFont)
XftFontClose(XimServer::gDpy, gXftFont);
@@ -387,7 +387,7 @@
DefaultScreen(XimServer::gDpy),
XFT_FAMILY, XftTypeString, gXftFontName,
XFT_PIXEL_SIZE, XftTypeDouble, (double)mXftFontSize,
- NULL);
+ (char *)NULL);
}
mXftDraw = XftDrawCreate(XimServer::gDpy, mPixmap,
DefaultVisual(XimServer::gDpy, scr_num),
@@ -557,7 +557,7 @@
DefaultScreen(XimServer::gDpy),
XFT_FAMILY, XftTypeString, gXftFontName,
XFT_PIXEL_SIZE, XftTypeDouble, (double)size,
- NULL);
+ (char *)NULL);
mXftFontSize = size;
}
}