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/test/dithering.c

    r810 r811  
    3636{
    3737    caca_event_t ev;
    38     cucul_canvas_t *c;
    39     caca_t *kk;
     38    cucul_canvas_t *cv;
     39    caca_display_t *dp;
    4040    int neara, dista, nearb, distb, dist;
    4141    int x, y;
    4242
    43     c = cucul_create(0, 0);
    44     kk = caca_attach(c);
     43    cv = cucul_create(0, 0);
     44    dp = caca_attach(cv);
    4545
    4646    for(x = 0; x < 100; x++)
     
    117117        else
    118118            ch = density[dista * 2 * 13 / (dista + distb)];
    119         cucul_set_color(c, points[nearb], points[neara]);
     119        cucul_set_color(cv, points[nearb], points[neara]);
    120120
    121         cucul_putchar(c, x * cucul_get_width(c) / 100,
    122                           (100 - y) * cucul_get_height(c) / 100, ch);
     121        cucul_putchar(cv, x * cucul_get_width(cv) / 100,
     122                          (100 - y) * cucul_get_height(cv) / 100, ch);
    123123    }
    124124
    125     caca_display(kk);
     125    caca_display(dp);
    126126
    127     caca_get_event(kk, CACA_EVENT_KEY_PRESS, &ev, -1);
     127    caca_get_event(dp, CACA_EVENT_KEY_PRESS, &ev, -1);
    128128
    129     caca_detach(kk);
    130     cucul_free(c);
     129    caca_detach(dp);
     130    cucul_free(cv);
    131131
    132132    return 0;
Note: See TracChangeset for help on using the changeset viewer.