diff options
author | marcus <marcus@FreeBSD.org> | 2009-08-25 11:49:56 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2009-08-25 11:49:56 +0800 |
commit | 30200e6c318245aa77f73e417f89fc7dd459b2d3 (patch) | |
tree | 5430603e9118d6ab638d59a529e3e4070c81243c /games | |
parent | 92ad0a654f897a4e3152724a7ae2acb3d99a19b1 (diff) | |
download | freebsd-ports-gnome-30200e6c318245aa77f73e417f89fc7dd459b2d3.tar.gz freebsd-ports-gnome-30200e6c318245aa77f73e417f89fc7dd459b2d3.tar.zst freebsd-ports-gnome-30200e6c318245aa77f73e417f89fc7dd459b2d3.zip |
Fix the build with the new fribidi.
Reported by: cperciva
Diffstat (limited to 'games')
-rw-r--r-- | games/wesnoth/files/patch-src_font.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/games/wesnoth/files/patch-src_font.cpp b/games/wesnoth/files/patch-src_font.cpp new file mode 100644 index 000000000000..4497d7c7296b --- /dev/null +++ b/games/wesnoth/files/patch-src_font.cpp @@ -0,0 +1,14 @@ +--- src/font.cpp.orig 2009-08-24 23:47:26.000000000 -0400 ++++ src/font.cpp 2009-08-24 23:48:51.000000000 -0400 +@@ -474,9 +474,9 @@ void text_surface::bidi_cvt() + FriBidiCharType base_dir = FRIBIDI_TYPE_ON; + int n; + +- n = fribidi_utf8_to_unicode (c_str, len, bidi_logical); ++ n = fribidi_charset_to_unicode (FRIBIDI_CHAR_SET_UTF8, c_str, len, bidi_logical); + fribidi_log2vis(bidi_logical, n, &base_dir, bidi_visual, NULL, NULL, NULL); +- fribidi_unicode_to_utf8 (bidi_visual, n, utf8str); ++ fribidi_unicode_to_charset (FRIBIDI_CHAR_SET_UTF8, bidi_visual, n, utf8str); + is_rtl_ = base_dir == FRIBIDI_TYPE_RTL; + str_ = std::string(utf8str); + delete[] bidi_logical; |