giant ant tiles or right side of msdos display

This commit is contained in:
nhmall
2022-03-23 22:01:01 -04:00
parent 27b1c38c50
commit 5478baa6ee
2 changed files with 25 additions and 23 deletions
+12 -12
View File
@@ -19,8 +19,7 @@
#define FIRST_TEXT_COLOR 240 #define FIRST_TEXT_COLOR 240
extern int total_tiles_used; /* tile.c */ extern int total_tiles_used, Tile_corr, Tile_unexplored; /* from tile.c */
struct VesaCharacter { struct VesaCharacter {
int colour; int colour;
int chr; int chr;
@@ -88,16 +87,17 @@ static struct map_struct {
short int tileidx; short int tileidx;
} map[ROWNO][COLNO]; /* track the glyphs */ } map[ROWNO][COLNO]; /* track the glyphs */
#define vesa_clearmap() \ #define vesa_clearmap() \
{ \ { \
int x, y; \ int x, y; \
for (y = 0; y < ROWNO; ++y) \ for (y = 0; y < ROWNO; ++y) \
for (x = 0; x < COLNO; ++x) { \ for (x = 0; x < COLNO; ++x) { \
map[y][x].glyph = cmap_to_glyph(S_stone); \ map[y][x].glyph = GLYPH_UNEXPLORED; \
map[y][x].ch = S_stone; \ map[y][x].ch = glyph2ttychar(GLYPH_UNEXPLORED); \
map[y][x].attr = 0; \ map[y][x].attr = 0; \
map[y][x].special = 0; \ map[y][x].special = 0; \
} \ map[y][x].tileidx = Tile_unexplored; \
} \
} }
#define TOP_MAP_ROW 1 #define TOP_MAP_ROW 1
+13 -11
View File
@@ -158,17 +158,19 @@ static struct map_struct {
short int tileidx; short int tileidx;
} map[ROWNO][COLNO]; /* track the glyphs */ } map[ROWNO][COLNO]; /* track the glyphs */
#define vga_clearmap() \ extern int total_tiles_used, Tile_corr, Tile_unexplored; /* from tile.c */
{ \
int x, y; \ #define vga_clearmap() \
for (y = 0; y < ROWNO; ++y) \ { \
for (x = 0; x < COLNO; ++x) { \ int x, y; \
map[y][x].glyph = cmap_to_glyph(S_stone); \ for (y = 0; y < ROWNO; ++y) \
map[y][x].ch = S_stone; \ for (x = 0; x < COLNO; ++x) { \
map[y][x].attr = 0; \ map[y][x].glyph = GLYPH_UNEXPLORED; \
map[y][x].special = 0; \ map[y][x].ch = glyph2ttychar(GLYPH_UNEXPLORED); \
map[y][x].tileidx = 0; \ map[y][x].attr = 0; \
} \ map[y][x].special = 0; \
map[y][x].tileidx = Tile_unexplored; \
} \
} }
#define TOP_MAP_ROW 1 #define TOP_MAP_ROW 1