Changeset 2988 for toilet/trunk/src/figlet.c
- Timestamp:
- Oct 18, 2008, 11:36:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
toilet/trunk/src/figlet.c
r2420 r2988 25 25 #include <stdlib.h> 26 26 #include <string.h> 27 #include <c ucul.h>27 #include <caca.h> 28 28 29 29 #include "toilet.h" … … 42 42 43 43 snprintf(path, 2047, "%s/%s", cx->dir, cx->font); 44 if(c ucul_canvas_set_figfont(cx->cv, path))44 if(caca_canvas_set_figfont(cx->cv, path)) 45 45 return -1; 46 46 … … 54 54 static int feed_figlet(context_t *cx, uint32_t ch, uint32_t attr) 55 55 { 56 return c ucul_put_figchar(cx->cv, ch);56 return caca_put_figchar(cx->cv, ch); 57 57 } 58 58 59 59 static int flush_figlet(context_t *cx) 60 60 { 61 int ret = c ucul_flush_figlet(cx->cv);61 int ret = caca_flush_figlet(cx->cv); 62 62 cx->torender = cx->cv; 63 cx->cv = c ucul_create_canvas(0, 0);63 cx->cv = caca_create_canvas(0, 0); 64 64 return ret; 65 65 } … … 67 67 static int end_figlet(context_t *cx) 68 68 { 69 return c ucul_canvas_set_figfont(cx->cv, NULL);69 return caca_canvas_set_figfont(cx->cv, NULL); 70 70 } 71 71
Note: See TracChangeset
for help on using the changeset viewer.