(mdraw_glyph_list): Refer to mfont__ft_driver only when
authorhanda <handa>
Thu, 31 Jan 2008 00:31:43 +0000 (00:31 +0000)
committerhanda <handa>
Thu, 31 Jan 2008 00:31:43 +0000 (00:31 +0000)
HAVE_FREETYPE is defined.

src/draw.c

index c44000b..a356883 100644 (file)
@@ -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