/* Display each map line in order */
for (y = 0; y < hgt + 2; ++y)
{
- int cx = COL_MAP;
+ /* Start a new line */
+ Term_gotoxy(COL_MAP, y);
/* Display the line */
for (x = 0; x < wid + 2; ++x)
}
/* Add the character */
- Term_queue_bigchar(cx, y, ta, tc, 0, 0);
-
- if (use_bigtile) cx += 2;
- else cx++;
+ Term_add_bigch(ta, tc);
}
}
/* Append the "standard" attr/char info */
Term_addstr(-1, TERM_WHITE, " ('");
- Term_addch(a1, c1);
- if (use_bigtile && (a1 & 0x80)) Term_addch(255, -1);
+ Term_add_bigch(a1, c1);
Term_addstr(-1, TERM_WHITE, "')");
/* Append the "optional" attr/char info */
Term_addstr(-1, TERM_WHITE, "/('");
- Term_addch(a2, c2);
- if (use_bigtile && (a2 & 0x80)) Term_addch(255, -1);
+ Term_add_bigch(a2, c2);
Term_addstr(-1, TERM_WHITE, "'):");
/* Wizards get extra info */
if (a & 0x80) a |= 0x40;
#endif
- Term_draw(cur_col, j + 1, a, c);
- if (use_bigtile)
- {
- cur_col++;
- if (a & 0x80)
- Term_draw(cur_col, j + 1, 255, -1);
- }
+ Term_queue_bigchar(cur_col, j + 1, a, c, 0, 0);
+ if (use_bigtile) cur_col++;
+
cur_col += 2;
}
if (a & 0x80) a |= 0x40;
#endif
- Term_draw(cur_col, j + 1, a, c);
- if (use_bigtile)
- {
- cur_col++;
- if (a & 0x80)
- Term_draw(cur_col, j + 1, 255, -1);
- }
+ Term_queue_bigchar(cur_col, j + 1, a, c, 0, 0);
+ if (use_bigtile) cur_col++;
+
cur_col += 2;
}
a |= 0x40;
#endif
- Term_draw(cur_col, i + 6, a, c);
- if (use_bigtile)
- {
- cur_col++;
- if (a & 0x80)
- Term_draw(cur_col, i + 6, 255, -1);
- }
+ Term_queue_bigchar(cur_col, i + 6, a, c, 0, 0);
cur_col += 2;
}
extern errr Term_gotoxy(int x, int y);
extern errr Term_draw(int x, int y, byte a, char c);
extern errr Term_addch(byte a, char c);
+extern errr Term_add_bigch(byte a, char c);
extern errr Term_addstr(int n, byte a, cptr s);
extern errr Term_putch(int x, int y, byte a, char c);
extern errr Term_putstr(int x, int y, int n, byte a, cptr s);