Mercurial > otakunoraifu
comparison scn2k/scn2k_text.cc @ 18:4d7486cb20a9
Sync with upstream
author | thib |
---|---|
date | Tue, 16 Sep 2008 15:30:03 +0000 |
parents | a95c130b567b |
children | 658272d883ed |
comparison
equal
deleted
inserted
replaced
17:a95c130b567b | 18:4d7486cb20a9 |
---|---|
618 ky += 8; | 618 ky += 8; |
619 kcursor->Pic()->Move(kx, ky); | 619 kcursor->Pic()->Move(kx, ky); |
620 } | 620 } |
621 } | 621 } |
622 void TextImpl::DrawBacklog(BacklogItem& item, Cmd& cmd) { | 622 void TextImpl::DrawBacklog(BacklogItem& item, Cmd& cmd) { |
623 text->show(); | 623 show(); |
624 text->wid->deactivate(); | 624 text->wid->deactivate(); |
625 status_mask = Status(status_mask | BACKLOG_WAIT_MASK); | 625 status_mask = Status(status_mask | BACKLOG_WAIT_MASK); |
626 drawn_backlog_item = item; | 626 drawn_backlog_item = item; |
627 if (item.text.container.empty()) { | 627 if (item.text.container.empty()) { |
628 // cmd から text 内容を再構成 | 628 // cmd から text 内容を再構成 |
630 text_stream.Clear(); | 630 text_stream.Clear(); |
631 AddText(cmd.Str(cmd.args[0])); | 631 AddText(cmd.Str(cmd.args[0])); |
632 item.text = text_stream; | 632 item.text = text_stream; |
633 text_stream = saved_text; | 633 text_stream = saved_text; |
634 } | 634 } |
635 item.text.InsertColor(0, item.text.container.size(), 0xff,0xff,0); | 635 item.text.InsertColor(0, item.text.container.size(), 0xff,0xff,0); |
636 text->StartText(item.text); | 636 text->StartText(item.text); |
637 text->wid->Flush(); | 637 text->wid->Flush(); |
638 if (item.face.empty()) text->ResetFace(); | 638 if (item.face.empty()) text->ResetFace(); |
639 else text->ShowFace(item.face.c_str()); | 639 else text->ShowFace(item.face.c_str()); |
640 if (kcursor) kcursor->hide(); | 640 if (kcursor) kcursor->hide(); |