Use a predefined structure for not-space cells used to set attributes.

This commit is contained in:
Nicholas Marriott
2012-05-23 19:19:40 +00:00
parent 84c708f355
commit 1f23f6d686
3 changed files with 6 additions and 7 deletions

1
grid.c
View File

@ -36,6 +36,7 @@
/* Default grid cell data. */
const struct grid_cell grid_default_cell = { 0, 0, 8, 8, ' ' };
const struct grid_cell grid_marker_cell = { 0, 0, 8, 8, '_' };
#define grid_put_cell(gd, px, py, gc) do { \
memcpy(&gd->linedata[py].celldata[px], \