Changeset 1241 for toilet/trunk/src/figlet.c
- Timestamp:
- Oct 26, 2006, 3:07:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
toilet/trunk/src/figlet.c
r1204 r1241 27 27 28 28 #include "toilet.h" 29 #include "render.h" 29 30 #include "io.h" 30 #include "figlet.h"31 31 32 32 #define STD_GLYPHS (127 - 32) … … 34 34 35 35 static int feed_figlet(context_t *, uint32_t); 36 static int flush_figlet(context_t *); 36 37 static int end_figlet(context_t *); 37 38 … … 48 49 49 50 cx->feed = feed_figlet; 51 cx->flush = flush_figlet; 50 52 cx->end = end_figlet; 51 53 … … 109 111 } 110 112 113 static int flush_figlet(context_t *cx) 114 { 115 cx->torender = cx->cv; 116 cucul_set_canvas_size(cx->torender, cx->w, cx->h); 117 118 cx->x = cx->y = 0; 119 cx->w = cx->h = 0; 120 cx->cv = cucul_create_canvas(1, 1); 121 122 return 0; 123 } 124 111 125 static int end_figlet(context_t *cx) 112 126 { 113 127 cucul_free_canvas(cx->image); 128 cucul_free_canvas(cx->cv); 114 129 free(cx->lookup); 115 130
Note: See TracChangeset
for help on using the changeset viewer.