Changeset 1113 for toilet/trunk/src/figlet.c
- Timestamp:
- Sep 26, 2006, 11:58:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
toilet/trunk/src/figlet.c
r1106 r1113 69 69 } 70 70 71 cucul_set_canvas_boundaries(cv, 0, 0, x, font->height); 72 71 73 free_font(font); 72 74 … … 135 137 { 136 138 static int const tab[7] = { 196, 214, 220, 228, 246, 252, 223 }; 137 font->lookup[font->glyphs * 2] = tab[font->glyphs =(127 - 32)];139 font->lookup[font->glyphs * 2] = tab[font->glyphs + (127 - 32)]; 138 140 } 139 141 else 140 142 { 141 fscanf(f, "%u %*[^\n]", &font->lookup[font->glyphs * 2]); 143 char number[10]; 144 145 fscanf(f, "%s %*[^\n]", number); 146 147 if(number[1] == 'x') 148 sscanf(number, "%x", &font->lookup[font->glyphs * 2]); 149 else 150 sscanf(number, "%u", &font->lookup[font->glyphs * 2]); 151 142 152 fscanf(f, "%*c"); 143 153 } … … 174 184 175 185 if(ch == font->hardblank) 176 cucul_putchar(font->image, i, j, ' '); 177 else if(oldch && ch != oldch) 186 cucul_putchar(font->image, i, j, ch = ' '); 187 188 if(oldch && ch != oldch) 178 189 { 179 190 if(!font->lookup[j / font->height * 2 + 1])
Note: See TracChangeset
for help on using the changeset viewer.