summaryrefslogtreecommitdiff
path: root/graphics/gd2/files/patch-gdttf.c
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-02-12 09:34:33 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-02-12 09:34:33 +0000
commita128c373e685440e41cf64e176cc980c2c868ff6 (patch)
tree2b835ce35ddc3f21531e6eff03ea6dacb1b6c450 /graphics/gd2/files/patch-gdttf.c
parentadd Maaate, a MPEG audio analysis toolkit (diff)
Update to 1.8.4.
Add MASTER_SITE_RINGSERVER to MASTER_SITES. Add a couple of patches to complete GD's Japanese support. PR: ports/24930 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>, knu Approved by: billf (MAINTAINER)
Notes
Notes: svn path=/head/; revision=38245
Diffstat (limited to 'graphics/gd2/files/patch-gdttf.c')
-rw-r--r--graphics/gd2/files/patch-gdttf.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/gd2/files/patch-gdttf.c b/graphics/gd2/files/patch-gdttf.c
new file mode 100644
index 000000000000..c7b8768a725f
--- /dev/null
+++ b/graphics/gd2/files/patch-gdttf.c
@@ -0,0 +1,17 @@
+--- gdttf.c.orig Fri Feb 2 05:23:56 2001
++++ gdttf.c Wed Feb 7 20:57:34 2001
+@@ -221,11 +221,10 @@
+ byte = *((unsigned char *) str);
+ #ifdef JISX0208
+ if (0xA1 <= byte && byte <= 0xFE) {
+- int jiscode, ku, ten;
++ int ku, ten;
+
+- jiscode = 0x100 * (byte & 0x7F) + (str[1] & 0x7F);
+- ku = (jiscode >> 8) - 0x20;
+- ten = (jiscode % 256) - 0x20;
++ ku = (byte & 0x7F) - 0x20;
++ ten = (str[1] & 0x7F) - 0x20;
+ if ( (ku < 1 || ku > 92) || (ten < 1 || ten > 94) ) {
+ *chPtr = (Tcl_UniChar) byte;
+ return 1;