mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 11:12:31 +00:00
20 lines
348 B
C++
20 lines
348 B
C++
#include "config.h"
|
|
|
|
#include "canvas.h"
|
|
#include "window_title.h"
|
|
|
|
namespace display {
|
|
|
|
void
|
|
WindowTitle::redraw() {
|
|
if (m_canvas->daemon())
|
|
return;
|
|
|
|
schedule_update();
|
|
m_canvas->erase();
|
|
|
|
m_canvas->print(std::max(0, ((int)m_canvas->width() - (int)m_title.size()) / 2 - 4), 0, "*** %s ***", m_title.c_str());
|
|
}
|
|
|
|
} // namespace display
|