OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d72d268
)
In Term_pict_cocoa(), step through the passed in arrays in increments of the tile...
author
Eric Branlund
<ebranlund@fastmail.com>
Sat, 15 Aug 2020 06:05:47 +0000
(23:05 -0700)
committer
Eric Branlund
<ebranlund@fastmail.com>
Sat, 15 Aug 2020 06:05:47 +0000
(23:05 -0700)
src/main-cocoa.m
patch
|
blob
|
history
diff --git
a/src/main-cocoa.m
b/src/main-cocoa.m
index
503b4ff
..
a731e51
100644
(file)
--- a/
src/main-cocoa.m
+++ b/
src/main-cocoa.m
@@
-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;