Browse Source

* Export cucul_flush_figlet() to the public API. It should be removed later,

but for now it's the only way to integrate properly with TOIlet.
tags/v0.99.beta14
Sam Hocevar sam 16 years ago
parent
commit
52710f796c
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      cucul/cucul.h
  2. +2
    -2
      cucul/figfont.c

+ 1
- 0
cucul/cucul.h View File

@@ -276,6 +276,7 @@ __extern int cucul_free_font(cucul_font_t *);
* @{ */
__extern int cucul_canvas_set_figfont(cucul_canvas_t *, char const *);
__extern int cucul_put_figchar(cucul_canvas_t *, uint32_t);
__extern int cucul_flush_figlet(cucul_canvas_t *);
/* @} */

/** \defgroup cucul_file libcucul file IO


+ 2
- 2
cucul/figfont.c View File

@@ -250,7 +250,7 @@ int cucul_put_figchar(cucul_canvas_t *cv, uint32_t ch)
return 0;
}

static int flush_figlet(cucul_canvas_t *cv)
int cucul_flush_figlet(cucul_canvas_t *cv)
{
cucul_figfont_t *ff = cv->ff;
int x, y;
@@ -283,7 +283,7 @@ static int flush_figlet(cucul_canvas_t *cv)
#define STD_GLYPHS (127 - 32)
#define EXT_GLYPHS (STD_GLYPHS + 7)

cucul_figfont_t * open_figfont(char const *path)
static cucul_figfont_t * open_figfont(char const *path)
{
char altpath[2048];
char buf[2048];


Loading…
Cancel
Save