From 3db79ab2f09a6c808ed29427ea253eb233167a8f Mon Sep 17 00:00:00 2001 From: Themaister Date: Wed, 5 Oct 2011 22:56:52 +0200 Subject: [PATCH] Nits. --- gfx/gl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gfx/gl.c b/gfx/gl.c index 132719fc57..4a811bf177 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -332,7 +332,7 @@ static void gl_shader_scale(unsigned index, struct gl_fbo_scale *scale) static inline void gl_init_font(gl_t *gl, const char *font_path, unsigned font_size) { #ifdef HAVE_FREETYPE - if (strlen(font_path) > 0) + if (*font_path) { gl->font = font_renderer_new(font_path, font_size); if (gl->font) @@ -348,6 +348,10 @@ static inline void gl_init_font(gl_t *gl, const char *font_path, unsigned font_s else SSNES_WARN("Couldn't init font renderer with font \"%s\"...\n", font_path); } +#else + (void)gl; + (void)font_path; + (void)font_size; #endif } @@ -539,6 +543,8 @@ static inline void gl_deinit_font(gl_t *gl) font_renderer_free(gl->font); glDeleteTextures(1, &gl->font_tex); } +#else + (void)gl; #endif } ////////////