summaryrefslogtreecommitdiffstats
path: root/libvo/font_load.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-02 14:41:38 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-02 14:41:38 +0000
commitd19fef9187b4c925577ee1ab6011e8d1041f548a (patch)
tree4d94a1ecc0fa1f15b13b388e25cec9fdec185a0f /libvo/font_load.c
parent7b6424637050d1dafd1fa93bcdd7ad42bfda0bb2 (diff)
downloadmpv-d19fef9187b4c925577ee1ab6011e8d1041f548a.tar.bz2
mpv-d19fef9187b4c925577ee1ab6011e8d1041f548a.tar.xz
Conditionally define render_one_glyph and kerning dummy functions in
font_load.c when FreeType is not enabled instead of conditionally defining them in font_load.h. This moves the workaround closer to where the actual problem is. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28235 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/font_load.c')
-rw-r--r--libvo/font_load.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/font_load.c b/libvo/font_load.c
index a18459b036..ba747dc7dc 100644
--- a/libvo/font_load.c
+++ b/libvo/font_load.c
@@ -335,3 +335,8 @@ fail_out:
free(desc);
return NULL;
}
+
+#ifndef CONFIG_FREETYPE
+void render_one_glyph(font_desc_t *desc, int c) {}
+int kerning(font_desc_t *desc, int prevc, int c) { return 0; }
+#endif