From 95d4edb1b0e81bcdfdad33738181d28b75f251cb Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 2 Feb 2003 01:43:40 +0000 Subject: Fixes a problem where the menu won't work, if you just use freetype fonts and have no font.desc. patch by Andreas Hess git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9213 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmenu/menu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmenu') diff --git a/libmenu/menu.c b/libmenu/menu.c index 616220dfdb..dc538afa47 100644 --- a/libmenu/menu.c +++ b/libmenu/menu.c @@ -117,8 +117,10 @@ int menu_init(char* cfg_file) { char* buffer = NULL; int bl = BUF_STEP, br = 0; int f, fd; +#ifndef HAVE_FREETYPE if(vo_font == NULL) return 0; +#endif fd = open(cfg_file, O_RDONLY); if(fd < 0) { printf("Can't open menu config file: %s\n",cfg_file); -- cgit v1.2.3