return (TRUE);
}
-static errr send_text_to_chuukei_server(int x, int y, int len, byte col, cptr str)
+static errr send_text_to_chuukei_server(TERM_LEN x, TERM_LEN y, int len, TERM_COLOR col, cptr str)
{
char buf[1024];
char buf2[1024];
int c;
IDX t;
- byte da = r_ptr->d_attr;
+ TERM_COLOR da = r_ptr->d_attr;
byte dc = r_ptr->d_char;
- byte ca = r_ptr->x_attr;
+ TERM_COLOR ca = r_ptr->x_attr;
byte cc = r_ptr->x_char;
/* Label the object */
/*
* Place the cursor at the collect position for visual mode
*/
-static void place_visual_list_cursor(TERM_LEN col, TERM_LEN row, byte a, byte c, byte attr_top, byte char_left)
+static void place_visual_list_cursor(TERM_LEN col, TERM_LEN row, TERM_COLOR a, byte c, byte attr_top, byte char_left)
{
int i = (a & 0x7f) - attr_top;
int j = c - char_left;
static bool visual_mode_command(char ch, bool *visual_list_ptr,
int height, int width,
byte *attr_top_ptr, byte *char_left_ptr,
- byte *cur_attr_ptr, byte *cur_char_ptr, bool *need_redraw)
+ TERM_COLOR *cur_attr_ptr, byte *cur_char_ptr, bool *need_redraw)
{
static byte attr_old = 0, char_old = 0;
extern alloc_entry *alloc_kind_table;
extern s16b alloc_race_size;
extern alloc_entry *alloc_race_table;
-extern byte misc_to_attr[256];
+extern TERM_COLOR misc_to_attr[256];
extern char misc_to_char[256];
-extern byte tval_to_attr[128];
+extern TERM_COLOR tval_to_attr[128];
extern char tval_to_char[128];
extern cptr keymap_act[KEYMAP_MODES][256];
extern player_type *p_ptr;
extern bool player_can_see_bold(POSITION y, POSITION x);
extern bool cave_valid_bold(POSITION y, POSITION x);
extern bool no_lite(void);
-extern void apply_default_feat_lighting(byte f_attr[F_LIT_MAX], byte f_char[F_LIT_MAX]);
+extern void apply_default_feat_lighting(TERM_COLOR f_attr[F_LIT_MAX], byte f_char[F_LIT_MAX]);
extern void map_info(POSITION y, POSITION x, byte *ap, char *cp, byte *tap, char *tcp);
extern void move_cursor_relative(int row, int col);
extern void print_rel(char c, byte a, TERM_LEN y, TERM_LEN x);
byte k;
- byte a;
+ TERM_COLOR a;
char c;
/* No motion (*) */
* Specify attr/char pairs for visual special effects
* Be sure to use "index & 0x7F" to avoid illegal access
*/
-byte misc_to_attr[256];
+TERM_COLOR misc_to_attr[256];
char misc_to_char[256];
* Specify attr/char pairs for inventory items (by tval)
* Be sure to use "index & 0x7F" to avoid illegal access
*/
-byte tval_to_attr[128];
+TERM_COLOR tval_to_attr[128];
char tval_to_char[128];
else
{
#endif
- byte oa = scr_aa[x];
+ TERM_COLOR oa = scr_aa[x];
char oc = scr_cc[x];
- byte ota = scr_taa[x];
+ TERM_COLOR ota = scr_taa[x];
char otc = scr_tcc[x];
/* Hack -- Ignore non-changes */
*
* Display text using "Term_text()" and "Term_wipe()"
*/
-static void Term_fresh_row_text(TERM_LEN y, int x1, int x2)
+static void Term_fresh_row_text(TERM_LEN y, TERM_LEN x1, TERM_LEN x2)
{
TERM_LEN x;
- byte *old_aa = Term->old->a[y];
+ TERM_COLOR *old_aa = Term->old->a[y];
char *old_cc = Term->old->c[y];
- byte *scr_aa = Term->scr->a[y];
+ TERM_COLOR *scr_aa = Term->scr->a[y];
char *scr_cc = Term->scr->c[y];
/* The "always_text" flag */
/* Pending attr */
byte fa = Term->attr_blank;
- byte oa;
+ TERM_COLOR oa;
char oc;
- byte na;
+ TERM_COLOR na;
char nc;
#ifdef JP
/* Wipe each row */
for (y = 0; y < h; y++)
{
- byte *aa = old->a[y];
+ TERM_COLOR *aa = old->a[y];
char *cc = old->c[y];
- byte *taa = old->ta[y];
+ TERM_COLOR *taa = old->ta[y];
char *tcc = old->tc[y];