From 3a220eb574e300067eb4eb22dbce9424e323c487 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Tue, 25 Aug 2009 03:49:56 +0000 Subject: Fix the build with the new fribidi. Reported by: cperciva --- games/wesnoth/files/patch-src_font.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 games/wesnoth/files/patch-src_font.cpp (limited to 'games/wesnoth') 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; -- cgit v1.2.3