summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMario Kilies <MarioKilies@GMX.net>2011-01-13 21:22:53 +0100
committerMario Kilies <MarioKilies@GMX.net>2011-01-13 21:22:53 +0100
commitcc42c90477733beddb01ceebaaa9f8a11642b977 (patch)
tree146953fcc2fc4538f105d9d23ab3f0bb509a768e /src
parent6f73a75a29696e04807a9a19bb858fecb0e57c0d (diff)
Bold table captions implemented.
Diffstat (limited to 'src')
-rw-r--r--src/display.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/display.c b/src/display.c
index cbc9eb1..7772732 100644
--- a/src/display.c
+++ b/src/display.c
@@ -117,7 +117,9 @@ static void draw_cardstack(WINDOW *w, const uint8_t row, const uint8_t col, cons
void display_window_table_cards(const tablestacks ts, const bool highlight, const uint8_t highlighted_stack)
{
+ wattron(w_table_cards, A_BOLD);
mvwprintw(w_table_cards, 0, 2, "Table Cards:");
+ wattroff(w_table_cards, A_BOLD);
for (uint8_t i = 0; i < NUM_TABLESTACKS; i++)
{
@@ -138,7 +140,9 @@ void display_window_table_cards(const tablestacks ts, const bool highlight, cons
void display_window_stack_points(const tablestacks ts)
{
+ wattron(w_stack_points, A_BOLD);
mvwprintw(w_stack_points, 0, 0, "Pts:");
+ wattroff(w_stack_points, A_BOLD);
for (uint8_t i = 0; i < NUM_TABLESTACKS; i++)
{
@@ -156,8 +160,10 @@ void display_window_stack_points(const tablestacks ts)
*/
void display_window_current_state(const player_name_open_card_tuple pnoc[], const uint8_t num_players, const uint32_t score)
{
+ wattron(w_current_state, A_BOLD);
mvwprintw(w_current_state, 0, 0, "Current state:");
mvwprintw(w_current_state, 0, 22, "Your Score: %3d", score);
+ wattroff(w_current_state, A_BOLD);
mvwprintw(w_current_state, 1, 1, "Player Card");
mvwprintw(w_current_state, 1, 22, "Player Card");
mvwvline(w_current_state, 1, 19, ACS_VLINE, 6); // Vertical line
@@ -185,7 +191,9 @@ void display_window_current_state(const player_name_open_card_tuple pnoc[], cons
*/
void display_window_hand_cards(const hand h, const bool highlight, const uint8_t highlighted_card)
{
+ wattron(w_hand_cards, A_BOLD);
mvwprintw(w_hand_cards, 0, 0, "Hand Cards:");
+ wattroff(w_hand_cards, A_BOLD);
for (uint8_t i = 0; i < MAX_HAND_CARDS; i++)
{