fix displaying songs if window's width is smaller than screen's width

This commit is contained in:
Andrzej Rybczak
2009-08-23 22:54:39 +02:00
parent b885c4f3a2
commit f1389103c2

View File

@@ -218,7 +218,7 @@ void Display::Songs(const MPD::Song &s, void *data, Menu<MPD::Song> *menu)
basic_buffer<my_char_t> buf;
buf << U(" ");
String2Buffer(TO_WSTRING(line.substr(it-line.begin()+1)), buf);
*menu << XY(COLS-buf.Str().length(), menu->Y()) << buf;
*menu << XY(menu->GetWidth()-buf.Str().length(), menu->Y()) << buf;
break;
}
else