aboutsummaryrefslogtreecommitdiff
path: root/games/fillets-ng
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2009-08-23 17:18:12 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2009-08-23 17:18:12 +0000
commit64bd530cb6e180bf8bef3d61743932eaffcf3fad (patch)
treedb1d738f02ebd037884c38a6cce6fa3cb3c767be /games/fillets-ng
parent2df0c31937c5cdf0a7383b76b808f03c24633e99 (diff)
downloadports-64bd530cb6e180bf8bef3d61743932eaffcf3fad.tar.gz
ports-64bd530cb6e180bf8bef3d61743932eaffcf3fad.zip
Notes
Diffstat (limited to 'games/fillets-ng')
-rw-r--r--games/fillets-ng/files/patch-src_effect_Font.cpp20
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;