diff options
author | Steve Wills <swills@FreeBSD.org> | 2014-01-31 02:58:19 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2014-01-31 02:58:19 +0000 |
commit | a8d23522f92fd0fd19433514827cc70f7cbe5d15 (patch) | |
tree | 4fac7c3a74411f13965bfc40c9b31d9162c367ca /japanese/ruby-ming/files/patch-ext-ming-ming-swftext.c | |
parent | 4c20e3ab39a24bbbf965c2eba2f4cb3b8d042b7d (diff) | |
download | ports-a8d23522f92fd0fd19433514827cc70f7cbe5d15.tar.gz ports-a8d23522f92fd0fd19433514827cc70f7cbe5d15.zip |
Notes
Diffstat (limited to 'japanese/ruby-ming/files/patch-ext-ming-ming-swftext.c')
-rw-r--r-- | japanese/ruby-ming/files/patch-ext-ming-ming-swftext.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/japanese/ruby-ming/files/patch-ext-ming-ming-swftext.c b/japanese/ruby-ming/files/patch-ext-ming-ming-swftext.c new file mode 100644 index 000000000000..b950392e1d57 --- /dev/null +++ b/japanese/ruby-ming/files/patch-ext-ming-ming-swftext.c @@ -0,0 +1,20 @@ +--- ext/ming/ming/swftext.c.orig 2003-09-28 13:30:34.000000000 +0900 ++++ ext/ming/ming/swftext.c 2014-01-29 17:11:21.000000000 +0900 +@@ -143,7 +143,7 @@ + + Data_Get_Struct(self, struct RSWFText, p); + +- SWFText_addString(p->this, STR2CSTR(s), NULL); ++ SWFText_addString(p->this, StringValuePtr(s), NULL); + return self; + } + +@@ -154,7 +154,7 @@ + struct RSWFText *p; + + Data_Get_Struct(self, struct RSWFText, p); +- return rb_float_new(SWFText_getStringWidth(p->this, STR2CSTR(s))); ++ return rb_float_new(SWFText_getStringWidth(p->this, StringValuePtr(s))); + } + + static VALUE |