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/driver_conio.c

    r777 r810  
    5757    /* FIXME */
    5858#   endif
    59     _cucul_set_size(kk->qq, kk->drv.p->ti.screenwidth,
    60                             kk->drv.p->ti.screenheight);
     59    _cucul_set_size(kk->c, kk->drv.p->ti.screenwidth,
     60                           kk->drv.p->ti.screenheight);
    6161    return 0;
    6262}
     
    6767    textcolor((enum COLORS)WHITE);
    6868    textbackground((enum COLORS)BLACK);
    69     gotoxy(kk->qq->width, kk->qq->height);
     69    gotoxy(kk->c->width, kk->c->height);
    7070    cputs("\r\n");
    7171    _setcursortype(_NORMALCURSOR);
     
    8585{
    8686    /* Fallback to a 6x10 font */
    87     return kk->qq->width * 6;
     87    return kk->c->width * 6;
    8888}
    8989
     
    9191{
    9292    /* Fallback to a 6x10 font */
    93     return kk->qq->height * 10;
     93    return kk->c->height * 10;
    9494}
    9595
     
    9797{
    9898    char *screen = kk->drv.p->screen;
    99     uint32_t *attr = kk->qq->attr;
    100     uint32_t *chars = kk->qq->chars;
     99    uint32_t *attr = kk->c->attr;
     100    uint32_t *chars = kk->c->chars;
    101101    int n;
    102102
    103     for(n = kk->qq->height * kk->qq->width; n--; )
     103    for(n = kk->c->height * kk->c->width; n--; )
    104104    {
    105105        *screen++ = _cucul_utf32_to_cp437(*chars++);
     
    116116{
    117117    /* We know nothing about our window */
    118     kk->resize.w = kk->qq->width;
    119     kk->resize.h = kk->qq->height;
     118    kk->resize.w = kk->c->width;
     119    kk->resize.h = kk->c->height;
    120120}
    121121
     
    134134
    135135    ev->type = CACA_EVENT_KEY_PRESS;
    136     ev->data.key.c = ch;
     136    ev->data.key.ch = ch;
    137137    ev->data.key.ucs4 = (uint32_t)ch;
    138138    ev->data.key.utf8[0] = ch;
Note: See TracChangeset for help on using the changeset viewer.