mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 07:02:30 +00:00
* Moved Timer to rak/timer.h.
* Added position affinity to ChunkSelector, still needs more work to make it move forward without needing to finish all pieces. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@604 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -50,12 +50,12 @@ Window::Window(Canvas* c, bool d, int h) :
|
||||
m_dynamic(d),
|
||||
m_minHeight(h) {
|
||||
|
||||
m_taskUpdate.set_iterator(utils::displayScheduler.end());
|
||||
m_taskUpdate.set_iterator(displayScheduler.end());
|
||||
m_taskUpdate.set_slot(sigc::mem_fun(*this, &Window::redraw));
|
||||
}
|
||||
|
||||
Window::~Window() {
|
||||
utils::displayScheduler.erase(&m_taskUpdate);
|
||||
displayScheduler.erase(&m_taskUpdate);
|
||||
delete m_canvas;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ Window::set_active(bool a) {
|
||||
if (a)
|
||||
mark_dirty();
|
||||
else
|
||||
utils::displayScheduler.erase(&m_taskUpdate);
|
||||
displayScheduler.erase(&m_taskUpdate);
|
||||
|
||||
m_active = a;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user