From: handa Date: Mon, 17 May 2004 06:55:12 +0000 (+0000) Subject: (struct MFace): Delete member tick, add member X-Git-Tag: withdl~215 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=06db40351a4a41fc24cc6169c979190764daf2f7;p=m17n%2Fm17n-lib.git (struct MFace): Delete member tick, add member realized_face_list. (struct MRealizedFace): Delete member tick, add member need_update. --- diff --git a/src/face.h b/src/face.h index a174631..dd7f538 100644 --- a/src/face.h +++ b/src/face.h @@ -27,7 +27,7 @@ enum MFaceProperty { /** The font related properties. */ /* The order of MFACE_FOUNDRY to MFACE_ADSTYLE must be the same as - enum MFontProperty. */ + MFONT_FOUNDRY to MFONT_ADSTYLE of enum MFontProperty. */ MFACE_FOUNDRY, MFACE_FAMILY, MFACE_WEIGHT, @@ -60,10 +60,12 @@ enum MFaceProperty struct MFace { M17NObject control; - /* Initialized to 0, and incremented by one each the face is - modified. */ - unsigned tick; + + /** Properties of the face. */ void *property[MFACE_PROPERTY_MAX]; + + /** List of realized faces based on the face. */ + MPlist *realized_face_list; }; @@ -82,8 +84,8 @@ struct MRealizedFace (MFace *). */ MPlist *base_face_list; - /* Initialized to the sum of ticks of the above faces. */ - unsigned tick; + /* Set to 1 if some of above faces is modified. */ + unsigned need_update; /* Realized font, one of ->realized_font_list. */ MRealizedFont *rfont;