From f1389103c2b0d8d610864228788192d73a87b6c5 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 23 Aug 2009 22:54:39 +0200 Subject: [PATCH] fix displaying songs if window's width is smaller than screen's width --- src/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display.cpp b/src/display.cpp index 0689045c..89df3af1 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -218,7 +218,7 @@ void Display::Songs(const MPD::Song &s, void *data, Menu *menu) basic_buffer 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