* Allow Frame's to be located in both rows and columns. Improved min

height/width for windows.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@748 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-07-28 00:17:54 +00:00
parent fc76a11d71
commit 4c9fc671be
40 changed files with 363 additions and 193 deletions
+2 -2
View File
@@ -54,9 +54,9 @@ public:
virtual void redraw();
unsigned int rows() const;
unsigned int chunks_per_row() const { return (m_canvas->get_width() - 6) / 11 * 10; }
unsigned int chunks_per_row() const { return (width() - 6) / 11 * 10; }
unsigned int max_focus() const { return std::max<int>(rows() - get_height() + 1, 0); }
unsigned int max_focus() const { return std::max<int>(rows() - height() + 1, 0); }
private:
core::Download* m_download;