Ignore:
Timestamp:
Oct 18, 2008 11:36:17 PM (5 years ago)
Author:
sam
Message:

Port toilet to the unified libcaca 0.99.beta15 API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/src/figlet.c

    r2420 r2988  
    2525#include <stdlib.h> 
    2626#include <string.h> 
    27 #include <cucul.h> 
     27#include <caca.h> 
    2828 
    2929#include "toilet.h" 
     
    4242 
    4343    snprintf(path, 2047, "%s/%s", cx->dir, cx->font); 
    44     if(cucul_canvas_set_figfont(cx->cv, path)) 
     44    if(caca_canvas_set_figfont(cx->cv, path)) 
    4545        return -1; 
    4646 
     
    5454static int feed_figlet(context_t *cx, uint32_t ch, uint32_t attr) 
    5555{ 
    56     return cucul_put_figchar(cx->cv, ch); 
     56    return caca_put_figchar(cx->cv, ch); 
    5757} 
    5858 
    5959static int flush_figlet(context_t *cx) 
    6060{ 
    61     int ret = cucul_flush_figlet(cx->cv); 
     61    int ret = caca_flush_figlet(cx->cv); 
    6262    cx->torender = cx->cv; 
    63     cx->cv = cucul_create_canvas(0, 0); 
     63    cx->cv = caca_create_canvas(0, 0); 
    6464    return ret; 
    6565} 
     
    6767static int end_figlet(context_t *cx) 
    6868{ 
    69     return cucul_canvas_set_figfont(cx->cv, NULL); 
     69    return caca_canvas_set_figfont(cx->cv, NULL); 
    7070} 
    7171 
Note: See TracChangeset for help on using the changeset viewer.