OSDN Git Service

[fix]ティーンチの表記を修正
[hengband/hengband.git] / src / main-ibm.c
index 2b3aaaa..bc3193f 100644 (file)
@@ -1,4 +1,4 @@
-/* File: main-ibm.c */
+/* File: main-ibm.c */
 
 /*
  * Copyright (c) 1997 Ben Harrison, and others
@@ -847,19 +847,19 @@ static errr Term_text_ibm(int x, int y, int n, byte a, const char *cp)
 #ifdef JP
       /* Dump the text */
       for (i = 0; i < n; i++) {
-              if (iskanji(cp[i])) {
-                      char jbuf[3];
-                      jbuf[0] = cp[i++];
-                      jbuf[1] = cp[i];
-                      jbuf[2] = '\0';
-                      cputs(jbuf);
-              } else {
-                      putch(cp[i]);
-              }
+             if (iskanji(cp[i])) {
+                     char jbuf[3];
+                     jbuf[0] = cp[i++];
+                     jbuf[1] = cp[i];
+                     jbuf[2] = '\0';
+                     cputs(jbuf);
+             } else {
+                     putch(cp[i]);
+             }
       }
 #else
-        /* Dump the text */
-        for (i = 0; i < n; i++) putch(cp[i]);
+       /* Dump the text */
+       for (i = 0; i < n; i++) putch(cp[i]);
 #endif
 
 #else /* USE_CONIO */
@@ -887,11 +887,7 @@ static errr Term_text_ibm(int x, int y, int n, byte a, const char *cp)
  *
  * The given parameters are "valid".
  */
-#ifdef USE_TRANSPARENCY
 static errr Term_pict_ibm(int x, int y, int n, const byte *ap, const char *cp, const byte *tap, const char *tcp)
-#else /* USE_TRANSPARENCY */
-static errr Term_pict_ibm(int x, int y, int n, const byte *ap, const char *cp)
-#endif /* USE_TRANSPARENCY */
 {
        register int i;
        register byte attr;
@@ -1128,11 +1124,11 @@ unsigned short __dpmi_sel = 0x0000;
 #define _farsetsel(x) __dpmi_sel=(x)
 extern void _farnspokeb(unsigned long offset, unsigned char value);
 #pragma aux _farnspokeb =        \
-          "push   fs"            \
-          "mov    fs,__dpmi_sel" \
-          "mov    fs:[eax],bl"   \
-          "pop    fs"            \
-          parm [eax] [bl];
+         "push   fs"            \
+         "mov    fs,__dpmi_sel" \
+         "mov    fs:[eax],bl"   \
+         "pop    fs"            \
+         parm [eax] [bl];
 
 #else /* USE_WAT */
 
@@ -1303,7 +1299,7 @@ errr init_ibm(void)
                char buf[4096];
 
                /* Build the filename */
-               path_build(buf, 1024, ANGBAND_DIR_XTRA, "angband.fnt");
+               path_build(buf, sizeof(buf), ANGBAND_DIR_XTRA, "angband.fnt");
 
                /* Open the file */
                f = fopen(buf, "rb");