From: handa Date: Thu, 22 Dec 2005 07:15:57 +0000 (+0000) Subject: (update_glyph_area): Use non_pixmap for X-Git-Tag: REL-0-9-5~38 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a31f8ff1b8d6261c92db1c5cd347689e040ef6e6;p=m17n%2Flibotf.git (update_glyph_area): Use non_pixmap for non-existing glyphs. --- diff --git a/example/otfview.c b/example/otfview.c index dd63a7c..ab8685a 100644 --- a/example/otfview.c +++ b/example/otfview.c @@ -211,9 +211,14 @@ update_glyph_area () if (charmap_index >= 0) index = FT_Get_Char_Index (face, (FT_ULong) index); - if (! bitmap[index].pixmap) - create_pixmap (index); - XtSetArg (arg[0], XtNbitmap, bitmap[index].pixmap); + if (! index) + XtSetArg (arg[0], XtNbitmap, none_pixmap); + else + { + if (! bitmap[index].pixmap) + create_pixmap (index); + XtSetArg (arg[0], XtNbitmap, bitmap[index].pixmap); + } XtSetValues (glyph[i], arg, 1); }