1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/textproc/uim/files/patch-xim_convdisp.cpp
MANTANI Nobutaka c3cb60dcf6 Update to 1.5.5.
PR:		ports/131014
Submitted by:	Hirohisa Yamaguchi <umq@ueo.co.jp>
2009-02-21 14:08:14 +00:00

47 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;
}
}