Ignore:
Timestamp:
Oct 31, 2006, 9:17:58 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • Changed cucul_set_attr() so that only setting the style does not change the colour.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/export.c

    r1263 r1266  
    127127        cucul_putstr(cv, WIDTH / 2 - 7, HEIGHT / 2 + 2, "äβç ░▒▓█▓▒░ ΔЗҒ");
    128128
    129         cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_BLACK, CUCUL_WHITE)
    130                             | CUCUL_BOLD);
     129        cucul_set_attr(cv, CUCUL_BOLD);
    131130        cucul_putstr(cv, WIDTH / 2 - 16, HEIGHT / 2 + 3, "Bold");
    132         cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_BLACK, CUCUL_WHITE)
    133                             | CUCUL_BLINK);
     131        cucul_set_attr(cv, CUCUL_BLINK);
    134132        cucul_putstr(cv, WIDTH / 2 - 9, HEIGHT / 2 + 3, "Blink");
    135         cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_BLACK, CUCUL_WHITE)
    136                             | CUCUL_ITALICS);
     133        cucul_set_attr(cv, CUCUL_ITALICS);
    137134        cucul_putstr(cv, WIDTH / 2 - 1, HEIGHT / 2 + 3, "Italics");
    138         cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_BLACK, CUCUL_WHITE)
    139                             | CUCUL_UNDERLINE);
     135        cucul_set_attr(cv, CUCUL_UNDERLINE);
    140136        cucul_putstr(cv, WIDTH / 2 + 8, HEIGHT / 2 + 3, "Underline");
    141137
Note: See TracChangeset for help on using the changeset viewer.