OSDN Git Service

In Term_pict_cocoa(), step through the passed in arrays in increments of the tile...
authorEric Branlund <ebranlund@fastmail.com>
Sat, 15 Aug 2020 06:05:47 +0000 (23:05 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Sat, 15 Aug 2020 06:05:47 +0000 (23:05 -0700)
src/main-cocoa.m

index 503b4ff..a731e51 100644 (file)
@@ -4792,11 +4792,15 @@ static errr Term_pict_cocoa(TERM_LEN x, TERM_LEN y, int n,
     }
 
     for (int i = x; i < x + n * step; i += step) {
-       TERM_COLOR a = *ap++;
-       char c = *cp++;
-       TERM_COLOR ta = *tap++;
-       char tc = *tcp++;
-
+       TERM_COLOR a = *ap;
+       char c = *cp;
+       TERM_COLOR ta = *tap;
+       char tc = *tcp;
+
+       ap += step;
+       cp += step;
+       tap += step;
+       tcp += step;
        if (use_graphics && (a & 0x80) && (c & 0x80)) {
            char fgdRow = ((byte)a & 0x7F) % pict_rows;
            char fgdCol = ((byte)c & 0x7F) % pict_cols;