handle height of sorting window properly

before, if terminal was less than 18 lines high, ncmpcpp
would exit at start throwing NCurses::Window::BadSize,
because sort dialog's height was hardcoded. now its size
changes dynamically, depending on actual screen size.
This commit is contained in:
Andrzej Rybczak
2009-04-26 13:20:01 +02:00
parent b5b5d64c80
commit e3d731d269
2 changed files with 8 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ class Playlist : public Screen< Menu<MPD::Song> >
static const size_t SortOptions;
static const size_t SortDialogWidth;
static const size_t SortDialogHeight;
static size_t SortDialogHeight;
};
extern Playlist *myPlaylist;