Ignore:
Timestamp:
Apr 18, 2006, 2:59:07 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed cucul_t into cucul_canvas_t. Eh ouais mon con.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca.c

    r773 r810  
    3232static int caca_init_driver(caca_t *kk);
    3333
    34 /** \brief Attach a caca graphical context to a cucul backend context.
     34/** \brief Attach a caca graphical context to a cucul canvas.
    3535 *
    3636 *  Create a graphical context using device-dependent features (ncurses for
     
    3939 *  then be displayed by the libcaca driver.
    4040 *
    41  *  \param qq The cucul backend context.
     41 *  \param c The cucul cavas.
    4242 *  \return The caca graphical context or NULL if an error occurred.
    4343 */
    44 caca_t * caca_attach(cucul_t * qq)
     44caca_t * caca_attach(cucul_canvas_t * c)
    4545{
    4646    caca_t *kk = malloc(sizeof(caca_t));
    4747
    48     kk->qq = qq;
     48    kk->c = c;
    4949
    5050    if(caca_init_driver(kk))
     
    6161
    6262    /* Attached! */
    63     kk->qq->refcount++;
     63    kk->c->refcount++;
    6464
    6565    /* Graphics stuff */
     
    8484
    8585    /* Mouse position */
    86     kk->mouse.x = kk->qq->width / 2;
    87     kk->mouse.y = kk->qq->height / 2;
     86    kk->mouse.x = kk->c->width / 2;
     87    kk->mouse.y = kk->c->height / 2;
    8888
    8989    /* Resize events */
     
    104104{
    105105    kk->drv.end_graphics(kk);
    106     kk->qq->refcount--;
     106    kk->c->refcount--;
    107107    free(kk);
    108108}
Note: See TracChangeset for help on using the changeset viewer.