comparison scn2k/scn2k_grp.cc @ 4:9fb4609a5372

Partially fixed Botan's bug
author thib
date Sat, 02 Aug 2008 09:57:20 +0000
parents 223b71206888
children aa0577c1a494
comparison
equal deleted inserted replaced
3:c4af1e9ab8d1 4:9fb4609a5372
1815 if (cmd.Str(cmd.args[1]) == string("???")) 1815 if (cmd.Str(cmd.args[1]) == string("???"))
1816 g.name = cmd.Str(cmd.args[2]); 1816 g.name = cmd.Str(cmd.args[2]);
1817 else 1817 else
1818 g.name = cmd.Str(cmd.args[1]); 1818 g.name = cmd.Str(cmd.args[1]);
1819 g.gan_name = cmd.Str(cmd.args[2]); 1819 g.gan_name = cmd.Str(cmd.args[2]);
1820 // The following lines fixes Botan's apparition on April 19
1821 // but Botan does not appears in the middle of the screen.
1822 // FIXME: This needs some further investigation.
1823 if (g.name.find('?') != -1) {
1824 g.name.erase(g.name.find('?'));
1825 g.gan_name = cmd.Str(cmd.args[2]);
1826 if (cmd.cmd4 >= 1 && cmd.args[2].value == 0)
1827 g.attr = GrpObj::Attribute(g.attr | GrpObj::HIDDEN);
1828 else
1829 g.attr = GrpObj::Attribute(g.attr & ~(GrpObj::HIDDEN));
1830 }
1820 } else if (cmd.cmd3 == 0x4b0) { // 画像を文字列として指定 1831 } else if (cmd.cmd3 == 0x4b0) { // 画像を文字列として指定
1821 g.gtype = GrpObj::MOJI; 1832 g.gtype = GrpObj::MOJI;
1822 g.print_moji = cmd.Str(cmd.args[1]); 1833 g.print_moji = cmd.Str(cmd.args[1]);
1823 g.attr = GrpObj::Attribute(g.attr & (~GrpObj::HIDDEN)); // 常に表示がデフォルト? 1834 g.attr = GrpObj::Attribute(g.attr & (~GrpObj::HIDDEN)); // 常に表示がデフォルト?
1824 cmd.clear(); 1835 cmd.clear();