diff --git a/GRRLIB/GRRLIB/GRRLIB_bmf.c b/GRRLIB/GRRLIB/GRRLIB_bmf.c index 9327539..38c0762 100644 --- a/GRRLIB/GRRLIB/GRRLIB_bmf.c +++ b/GRRLIB/GRRLIB/GRRLIB_bmf.c @@ -29,6 +29,7 @@ THE SOFTWARE. * Load a ByteMap font structure from a buffer. * @param my_bmf The ByteMap font buffer to load. * @return A GRRLIB_bytemapFont structure filled with BMF informations. + * @see GRRLIB_FreeBMF */ GRRLIB_bytemapFont* GRRLIB_LoadBMF (const u8 my_bmf[] ) { GRRLIB_bytemapFont *fontArray = (struct GRRLIB_bytemapFont *)malloc(sizeof(GRRLIB_bytemapFont)); diff --git a/GRRLIB/GRRLIB/GRRLIB_core.c b/GRRLIB/GRRLIB/GRRLIB_core.c index 8f63c5d..1be830d 100644 --- a/GRRLIB/GRRLIB/GRRLIB_core.c +++ b/GRRLIB/GRRLIB/GRRLIB_core.c @@ -138,11 +138,11 @@ int GRRLIB_Init (void) { // Default settings GRRLIB_Settings.antialias = true; GRRLIB_Settings.blend = GRRLIB_BLEND_ALPHA; - + // Schedule cleanup for when program exits is_setup = true; atexit(GRRLIB_Exit); - + return 0; } diff --git a/GRRLIB/GRRLIB/GRRLIB_print.c b/GRRLIB/GRRLIB/GRRLIB_print.c index c48a128..340834b 100644 --- a/GRRLIB/GRRLIB/GRRLIB_print.c +++ b/GRRLIB/GRRLIB/GRRLIB_print.c @@ -58,7 +58,7 @@ void GRRLIB_Printf (const f32 xpos, const f32 ypos, } /** - * Print formatted output. + * Print formatted output with a ByteMap font. * @param xpos Specifies the x-coordinate of the upper-left corner of the text. * @param ypos Specifies the y-coordinate of the upper-left corner of the text. * @param bmf The ByteMap font to use. @@ -71,7 +71,6 @@ void GRRLIB_PrintBMF (const f32 xpos, const f32 ypos, const f32 zoom, const char *text, ...) { uint i, j, x, y, n, size; char tmp[1024]; - f32 xoff = xpos; va_list argp;