fix displaying songs if window's width is smaller than screen's width
This commit is contained in:
@@ -218,7 +218,7 @@ void Display::Songs(const MPD::Song &s, void *data, Menu<MPD::Song> *menu)
|
|||||||
basic_buffer<my_char_t> buf;
|
basic_buffer<my_char_t> buf;
|
||||||
buf << U(" ");
|
buf << U(" ");
|
||||||
String2Buffer(TO_WSTRING(line.substr(it-line.begin()+1)), buf);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user