Mercurial > otakunoraifu
comparison scn2k/scn2k_text.cc @ 43:01aa5ddf7dc8
A lot of very minor improvements (deleted some unused variables, and other things like that...)
author | thib |
---|---|
date | Tue, 24 Mar 2009 19:45:48 +0000 |
parents | 651237260724 |
children | 5f548e5957a8 |
comparison
equal
deleted
inserted
replaced
42:039d813d4cef | 43:01aa5ddf7dc8 |
---|---|
765 int sel_h = text->wid->pictext->Height(); | 765 int sel_h = text->wid->pictext->Height(); |
766 sel_widget = text->wid->PicNode()->create_node(Rect(posx, posy, posx+sel_w, posy+sel_h), 0); | 766 sel_widget = text->wid->PicNode()->create_node(Rect(posx, posy, posx+sel_w, posy+sel_h), 0); |
767 | 767 |
768 int sel_y = 0; | 768 int sel_y = 0; |
769 for (i=0; i<sel_size; i++) { | 769 for (i=0; i<sel_size; i++) { |
770 PicBase* p; | |
771 /* ボタン作成 */ | 770 /* ボタン作成 */ |
772 const char* str = cmd.Str(cmd.args[i*2]); | 771 const char* str = cmd.Str(cmd.args[i*2]); |
773 int value = cmd.args[i*2+1].value; | 772 int value = cmd.args[i*2+1].value; |
774 while(selects.size() <= value) selects.push_back(0); // vector の大きさを広げる | 773 while(selects.size() <= value) selects.push_back(0); // vector の大きさを広げる |
775 | 774 |
1101 atom.total_time = cmd.args[j++].value; | 1100 atom.total_time = cmd.args[j++].value; |
1102 atom.start_time = old_time; | 1101 atom.start_time = old_time; |
1103 } | 1102 } |
1104 cmd.clear(); | 1103 cmd.clear(); |
1105 } else if (cmd.cmd3 == 0x276) { // get time (multi) | 1104 } else if (cmd.cmd3 == 0x276) { // get time (multi) |
1106 int j = 0; | |
1107 eprintf("get timer value\n"); | 1105 eprintf("get timer value\n"); |
1108 vector<VarInfo> args = cmd.args; | 1106 vector<VarInfo> args = cmd.args; |
1109 vector<VarInfo>::iterator it = args.begin(); | 1107 vector<VarInfo>::iterator it = args.begin(); |
1110 int argc = cmd.argc; | 1108 int argc = cmd.argc; |
1111 int active_timers = 0; | 1109 int active_timers = 0; |
1998 } | 1996 } |
1999 } | 1997 } |
2000 MakeWaku(*wid->PicNode(), event,waku_no, win_no, use_btn, config, callback); | 1998 MakeWaku(*wid->PicNode(), event,waku_no, win_no, use_btn, config, callback); |
2001 } | 1999 } |
2002 void TextImpl::InitWindow(void) { | 2000 void TextImpl::InitWindow(void) { |
2003 int i,j,k; | 2001 int i; |
2004 int w; | 2002 int w; |
2005 std::string str; | 2003 std::string str; |
2006 | 2004 |
2007 for (w=0; w<32; w++) { | 2005 for (w=0; w<32; w++) { |
2008 widgets[w] = new TextWindow(parent, event, w, config, (void*)this); | 2006 widgets[w] = new TextWindow(parent, event, w, config, (void*)this); |