src/ui-term.c
void Term_queue_char(term *t, int x, int y, int a, wchar_t c, int ta,
					 wchar_t tc)
{
	int *scr_aa = t->scr->a[y];
	wchar_t *scr_cc = t->scr->c[y];

	int oa = scr_aa[x];
	wchar_t oc = scr_cc[x];

	int *scr_taa = t->scr->ta[y];
	wchar_t *scr_tcc = t->scr->tc[y];

	int ota = scr_taa[x];
	wchar_t otc = scr_tcc[x];

	/* Don't change is the terrain value is 0 */
	if (!ta) ta = ota;
	if (!tc) tc = otc;

	/* Hack -- Ignore non-changes */
	if ((oa == a) && (oc == c) && (ota == ta) && (otc == tc)) return;

	/* Save the "literal" information */
	scr_aa[x] = a;
	scr_cc[x] = c;

	scr_taa[x] = ta;
	scr_tcc[x] = tc;

	/* Check for new min/max row info */
	if (y < t->y1) t->y1 = y;
	if (y > t->y2) t->y2 = y;

	/* Check for new min/max col info for this row */
	if (x < t->x1[y]) t->x1[y] = x;
	if (x > t->x2[y]) t->x2[y] = x;
}
/**
 * Mentally draw an attr/char at a given location
 *
 * Assumes given location and values are valid.
 */
Mentally draw an attr/char at a given location
Assumes given location and values are valid.
Mentally draw an attr / char at a given location Assumes given location and values are valid .
void Term_queue_char(term *t, int x, int y, int a, wchar_t c, int ta,
					 wchar_t tc)
{
	int *scr_aa = t->scr->a[y];
	wchar_t *scr_cc = t->scr->c[y];
	int oa = scr_aa[x];
	wchar_t oc = scr_cc[x];
	int *scr_taa = t->scr->ta[y];
	wchar_t *scr_tcc = t->scr->tc[y];
	int ota = scr_taa[x];
	wchar_t otc = scr_tcc[x];
	if (!ta) ta = ota;
	if (!tc) tc = otc;
	if ((oa == a) && (oc == c) && (ota == ta) && (otc == tc)) return;
	scr_aa[x] = a;
	scr_cc[x] = c;
	scr_taa[x] = ta;
	scr_tcc[x] = tc;
	if (y < t->y1) t->y1 = y;
	if (y > t->y2) t->y2 = y;
	if (x < t->x1[y]) t->x1[y] = x;
	if (x > t->x2[y]) t->x2[y] = x;
}
void Term_queue_char ( term * t , int x , int y , int a , wchar_t c , int ta , wchar_t tc ) { int * scr_aa = t -> scr -> a [ y ] ; wchar_t * scr_cc = t -> scr -> c [ y ] ; int oa = scr_aa [ x ] ; wchar_t oc = scr_cc [ x ] ; int * scr_taa = t -> scr -> ta [ y ] ; wchar_t * scr_tcc = t -> scr -> tc [ y ] ; int ota = scr_taa [ x ] ; wchar_t otc = scr_tcc [ x ] ; if ( ! ta ) ta = ota ; if ( ! tc ) tc = otc ; if ( ( oa == a ) && ( oc == c ) && ( ota == ta ) && ( otc == tc ) ) return ; scr_aa [ x ] = a ; scr_cc [ x ] = c ; scr_taa [ x ] = ta ; scr_tcc [ x ] = tc ; if ( y < t -> y1 ) t -> y1 = y ; if ( y > t -> y2 ) t -> y2 = y ; if ( x < t -> x1 [ y ] ) t -> x1 [ y ] = x ; if ( x > t -> x2 [ y ] ) t -> x2 [ y ] = x ; }
Mentally draw an attr/char at a given location
 Assumes given location and values are valid.
Mentally draw an attr / char at a given location Assumes given location and values are valid .
/* Don't change is the terrain value is 0 */ /* Hack -- Ignore non-changes */ /* Save the "literal" information */ /* Check for new min/max row info */ /* Check for new min/max col info for this row */