diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-16 18:54:21 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-16 18:54:21 +0300 |
| commit | 76067d0625f35f85f0bf775f83c12447d5d12a21 (patch) | |
| tree | b00418a348bf7459890c7bbc47c46cf0ed8736c0 | |
| parent | d0b1a2ab1a6f5c004d675d700181b16385a30b04 (diff) | |
Render start and goal in bold
| -rw-r--r-- | map.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -135,6 +135,7 @@ void draw_map(Map map, size_t width, size_t height, Position start, Position goa } // Draw the start + attron(A_BOLD); attron(COLOR_PAIR(START_COLOR)); mvaddch(start.y + DRAW_MAP_OFFSET_Y, start.x*2 + DRAW_MAP_OFFSET_X, START_CHAR_1); mvaddch(start.y + DRAW_MAP_OFFSET_Y, start.x*2 + DRAW_MAP_OFFSET_X + 1, START_CHAR_2); @@ -145,5 +146,6 @@ void draw_map(Map map, size_t width, size_t height, Position start, Position goa mvaddch(goal.y + DRAW_MAP_OFFSET_Y, goal.x*2 + DRAW_MAP_OFFSET_X, GOAL_CHAR_1); mvaddch(goal.y + DRAW_MAP_OFFSET_Y, goal.x*2 + DRAW_MAP_OFFSET_X + 1, GOAL_CHAR_2); attroff(COLOR_PAIR(GOAL_COLOR)); + attroff(A_BOLD); } |
