Ignore:
Timestamp:
Apr 18, 2006, 5:11:25 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed caca_t into caca_display_t.
  • Renamed canvas handle variables from "c" to "cv". Eh ouais mon gros.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/colour.c

    r810 r811  
    3737 *  or CUCUL_COLOR_TRANSPARENT.
    3838 *
    39  *  \param c A handle to the libcucul canvas.
     39 *  \param cv A handle to the libcucul canvas.
    4040 *  \param fg The requested foreground colour.
    4141 *  \param bg The requested background colour.
    4242 */
    43 void cucul_set_color(cucul_canvas_t *c, unsigned char fg, unsigned char bg)
     43void cucul_set_color(cucul_canvas_t *cv, unsigned char fg, unsigned char bg)
    4444{
    4545    if(fg > 0x20 || bg > 0x20)
    4646        return;
    4747
    48     c->fgcolor = fg;
    49     c->bgcolor = bg;
     48    cv->fgcolor = fg;
     49    cv->bgcolor = bg;
    5050}
    5151
     
    6060 *  white with 50% alpha (A=8 R=15 G=15 B=15).
    6161 *
    62  *  \param c A handle to the libcucul canvas.
     62 *  \param cv A handle to the libcucul canvas.
    6363 *  \param fg The requested foreground colour.
    6464 *  \param bg The requested background colour.
    6565 */
    66 void cucul_set_truecolor(cucul_canvas_t *c, unsigned int fg, unsigned int bg)
     66void cucul_set_truecolor(cucul_canvas_t *cv, unsigned int fg, unsigned int bg)
    6767{
    6868    if(fg > 0xffff || bg > 0xffff)
     
    7575        bg += 0x100;
    7676
    77     c->fgcolor = fg;
    78     c->bgcolor = bg;
     77    cv->fgcolor = fg;
     78    cv->bgcolor = bg;
    7979}
    8080
Note: See TracChangeset for help on using the changeset viewer.