add multiple items selection on playlist screen and nested colors support

This commit is contained in:
unK
2008-08-31 04:09:07 +02:00
parent ceff30c9ec
commit f8f414d93a
12 changed files with 535 additions and 320 deletions

View File

@@ -299,9 +299,8 @@ void Window::Write(int limit, const string &str, CLEAR_TO_EOL clrtoeol)
tmp.clear();
if (is_valid_color(color))
{
const COLOR *colors = into_color(color);
SetColor(colors[0],colors[1]);
delete [] colors;
std::pair<COLOR, COLOR> colors = into_color(color);
SetColor(colors.first, colors.second);
}
else
{
@@ -361,11 +360,10 @@ void Window::Write(int limit, const wstring &str, CLEAR_TO_EOL clrtoeol)
{
waddwstr(itsWindow,tmp.c_str());
tmp.clear();
if (is_valid_color(ToString(color.c_str())))
if (is_valid_color(ToString(color)))
{
const COLOR *colors = into_color(ToString(color.c_str()));
SetColor(colors[0],colors[1]);
delete [] colors;
std::pair<COLOR, COLOR> colors = into_color(ToString(color));
SetColor(colors.first, colors.second);
}
else
{