Mercurial > otakunoraifu
comparison 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 |
comparison
equal
deleted
inserted
replaced
13:a05bf0823154 | 14:8da1d92ac8f8 |
---|---|
233 int GrpObj::PosY() { | 233 int GrpObj::PosY() { |
234 return _posy; | 234 return _posy; |
235 } | 235 } |
236 void GrpObj::SetUpdate(void) { | 236 void GrpObj::SetUpdate(void) { |
237 attr = Attribute (attr | UPDATE_PICTURE); | 237 attr = Attribute (attr | UPDATE_PICTURE); |
238 Update(); //FIXME | |
238 } | 239 } |
239 void GrpObj::SetPos(int index, int x,int y) { | 240 void GrpObj::SetPos(int index, int x,int y) { |
240 if (index < 0 || index > 8) { | 241 if (index < 0 || index > 8) { |
241 fprintf(stderr,"GrpObj::SetPos: Invalid index %d <- %d,%d\n",index,x,y); | 242 fprintf(stderr,"GrpObj::SetPos: Invalid index %d <- %d,%d\n",index,x,y); |
242 return; | 243 return; |
510 } | 511 } |
511 ts.Add(str); | 512 ts.Add(str); |
512 return ts; | 513 return ts; |
513 } | 514 } |
514 void GrpObj::UpdateMoji(void) { // 文字の大きさ、色などを変更 | 515 void GrpObj::UpdateMoji(void) { // 文字の大きさ、色などを変更 |
515 if (print_moji.length() == 0) return; | 516 if (print_moji.length() == 0 || print_size <= 2) return; |
516 if (pic_parent == 0) return; | 517 if (pic_parent == 0) return; |
517 /* テキストの大きさを得る */ | 518 /* テキストの大きさを得る */ |
518 int r, g, b; | 519 int r, g, b; |
519 if (print_r == -1 || print_g == -1 || print_b == -1) {// 色設定なし | 520 if (print_r == -1 || print_g == -1 || print_b == -1) {// 色設定なし |
520 r = g = b = 0; // とりあえず黒(clannad のSave/Loadメニュー用) | 521 r = g = b = 0; // とりあえず黒(clannad のSave/Loadメニュー用) |