mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-10 16:19:23 +00:00
* 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:
@@ -121,7 +121,7 @@ ElementFileList::receive_pagenext() {
|
||||
if (m_window == NULL)
|
||||
throw torrent::client_error("ui::ElementFileList::receive_pagenext(...) called on a disabled object");
|
||||
|
||||
unsigned int count = (m_window->get_height() - 1) / 2;
|
||||
unsigned int count = (m_window->height() - 1) / 2;
|
||||
|
||||
if (m_focus + count < m_download->download()->file_list().size())
|
||||
m_focus += count;
|
||||
@@ -143,7 +143,7 @@ ElementFileList::receive_pageprev() {
|
||||
if (fl.size() == 0)
|
||||
return;
|
||||
|
||||
unsigned int count = (m_window->get_height() - 1) / 2;
|
||||
unsigned int count = (m_window->height() - 1) / 2;
|
||||
|
||||
if (m_focus > count)
|
||||
m_focus -= count;
|
||||
|
||||
Reference in New Issue
Block a user