Work on an input field.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@272 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-13 21:47:26 +00:00
parent aec27deaeb
commit 73b1c58f4c
19 changed files with 313 additions and 25 deletions
+5
View File
@@ -12,7 +12,12 @@ WindowTitle::WindowTitle(const std::string& s) :
void
WindowTitle::redraw() {
if (Timer::cache() - m_lastDraw < 10000000)
return;
m_lastDraw = Timer::cache();
m_canvas->erase();
m_canvas->print(std::max(0, (m_canvas->get_width() - (int)m_title.size()) / 2 - 4), 0,
"*** %s ***", m_title.c_str());
}