display: pass screen to functions by pointer

This commit is contained in:
Andrzej Rybczak
2012-09-05 20:52:33 +02:00
parent eff1d672b9
commit 10e88ec6b4
6 changed files with 19 additions and 16 deletions

View File

@@ -107,7 +107,7 @@ void MediaLibrary::Init()
Songs->centeredCursor(Config.centered_cursor);
Songs->setSelectedPrefix(Config.selected_item_prefix);
Songs->setSelectedSuffix(Config.selected_item_suffix);
Songs->setItemDisplayer(std::bind(Display::Songs, _1, *this, Config.song_library_format));
Songs->setItemDisplayer(std::bind(Display::Songs, _1, this, Config.song_library_format));
w = Tags;
isInitialized = 1;