From b0ef63ba9b191d0952c7615fda75cce722a610b0 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 31 Jan 2008 00:31:43 +0000 Subject: [PATCH] (mdraw_glyph_list): Refer to mfont__ft_driver only when HAVE_FREETYPE is defined. --- src/draw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/draw.c b/src/draw.c index c44000b..a356883 100644 --- a/src/draw.c +++ b/src/draw.c @@ -2733,10 +2733,14 @@ mdraw_glyph_list (MFrame *frame, MText *mt, int from, int to, if (g->rface->rfont) { glyphs->font = (MFont *) g->rface->rfont; +#ifdef HAVE_FREETYPE glyphs->font_type = (glyphs->font->source == MFONT_SOURCE_X ? Mx : g->rface->rfont->driver == &mfont__ft_driver ? Mfreetype : Mxft); +#else /* not HAVE_FREETYPE */ + glyphs->font_type = Mx; +#endif /* not HAVE_FREETYPE */ glyphs->fontp = g->rface->rfont->fontp; } else -- 1.7.10.4