Mercurial > otakunoraifu
diff scn2k/scn2k_grp.cc @ 14:8da1d92ac8f8
Don't create fonts faces for size <= 0, and update objects when their font size is set
author | thib |
---|---|
date | Sat, 09 Aug 2008 12:04:08 +0000 |
parents | 28a4f6bde8c8 |
children | 4d7486cb20a9 |
line wrap: on
line diff
--- a/scn2k/scn2k_grp.cc +++ b/scn2k/scn2k_grp.cc @@ -235,6 +235,7 @@ int GrpObj::PosY() { } void GrpObj::SetUpdate(void) { attr = Attribute (attr | UPDATE_PICTURE); + Update(); //FIXME } void GrpObj::SetPos(int index, int x,int y) { if (index < 0 || index > 8) { @@ -512,7 +513,7 @@ TextStream GrpObj::ParseMoji(const char* str, int def_r ,int def_g, int def_b, int def_size) { // 制御シーケンス付き文字列をparse return ts; } void GrpObj::UpdateMoji(void) { // 文字の大きさ、色などを変更 - if (print_moji.length() == 0) return; + if (print_moji.length() == 0 || print_size <= 2) return; if (pic_parent == 0) return; /* テキストの大きさを得る */ int r, g, b;