diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2009-08-23 17:18:12 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2009-08-23 17:18:12 +0000 |
commit | 64bd530cb6e180bf8bef3d61743932eaffcf3fad (patch) | |
tree | db1d738f02ebd037884c38a6cce6fa3cb3c767be /games/fillets-ng | |
parent | 2df0c31937c5cdf0a7383b76b808f03c24633e99 (diff) | |
download | ports-64bd530cb6e180bf8bef3d61743932eaffcf3fad.tar.gz ports-64bd530cb6e180bf8bef3d61743932eaffcf3fad.zip |
Notes
Diffstat (limited to 'games/fillets-ng')
-rw-r--r-- | games/fillets-ng/files/patch-src_effect_Font.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/fillets-ng/files/patch-src_effect_Font.cpp b/games/fillets-ng/files/patch-src_effect_Font.cpp new file mode 100644 index 000000000000..637a4642ea35 --- /dev/null +++ b/games/fillets-ng/files/patch-src_effect_Font.cpp @@ -0,0 +1,20 @@ +--- src/effect/Font.cpp.orig 2009-08-23 13:13:38.000000000 -0400 ++++ src/effect/Font.cpp 2009-08-23 13:14:57.000000000 -0400 +@@ -26,7 +26,7 @@ Font::biditize(const std::string &text) + FriBidiChar *logicalString = new FriBidiChar[text.length() + 1]; + FriBidiChar *visualString = new FriBidiChar[text.length() + 1]; + +- int ucsLength = fribidi_utf8_to_unicode(const_cast<char*>(text.c_str()), ++ int ucsLength = fribidi_charset_to_unicode(FRIBIDI_CHAR_SET_UTF8, const_cast<char*>(text.c_str()), + text.length(), logicalString); + fribidi_boolean ok = fribidi_log2vis(logicalString, ucsLength, &base, + visualString, NULL, NULL, NULL); +@@ -37,7 +37,7 @@ Font::biditize(const std::string &text) + } + + char *buffer = new char[text.length() + 1]; +- int length = fribidi_unicode_to_utf8(visualString, ucsLength, buffer); ++ int length = fribidi_unicode_to_charset(FRIBIDI_CHAR_SET_UTF8, visualString, ucsLength, buffer); + std::string result = std::string(buffer, length); + delete[] buffer; + delete[] visualString; |