Browse Source

Do not crash in caca_flush_figlet() if no figfont was loaded.

tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
8c678ff82a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      caca/figfont.c

+ 3
- 0
caca/figfont.c View File

@@ -258,6 +258,9 @@ int caca_flush_figlet(caca_canvas_t *cv)
caca_figfont_t *ff = cv->ff;
int x, y;

if (!ff)
return -1;

//ff->torender = cv;
//caca_set_canvas_size(ff->torender, ff->w, ff->h);
caca_set_canvas_size(cv, ff->w, ff->h);


Loading…
Cancel
Save