OSDN Git Service

全角文字モードで, 周囲と色が全く同じ物の左バイトが更新されず, 右バイトの文字だけが更新されて半角で現れたりして化ける問題を修正.
author_nothere <_nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 13 Apr 2002 16:28:52 +0000 (16:28 +0000)
committer_nothere <_nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 13 Apr 2002 16:28:52 +0000 (16:28 +0000)
src/cave.c
src/z-term.c

index deaab18..552bc40 100644 (file)
@@ -1773,7 +1773,7 @@ static void bigtile_attr(char *cp, byte *ap, char *cp2, byte *ap2)
 #ifdef JP
        if (isprint(*cp) || *cp == 127)
        {
-               *ap2 = *ap;
+               *ap2 = 255;
                *cp2 = ascii_to_zenkaku[2*(*cp-' ') + 1];
                *cp = ascii_to_zenkaku[2*(*cp-' ')];
                return;
index 3dad942..5e0de92 100644 (file)
@@ -569,6 +569,9 @@ void Term_queue_char(int x, int y, byte a, char c)
        /* Check for new min/max col info for this row */
        if (x < Term->x1[y]) Term->x1[y] = x;
        if (x > Term->x2[y]) Term->x2[y] = x;
+
+       if (scrn->a[y][x] == 255)
+               if ((x - 1) < Term->x1[y]) Term->x1[y]--;
 }