Code

screen_browse: removed unnecessary color selection
authorThomas Jansen <mithi@mithi.net>
Thu, 29 Oct 2009 09:07:05 +0000 (10:07 +0100)
committerThomas Jansen <mithi@mithi.net>
Thu, 29 Oct 2009 09:07:05 +0000 (10:07 +0100)
All cases use row_paint_text internally which sets the color. There is no
need to have the colors_use calls before, as they will be overwritten.

src/screen_browser.c

index 985be3898fcd290f4baa38f9d78e6233cfe0058a..0d3eb87808b96b63b60446d6ef6a1aa983288da7 100644 (file)
@@ -536,11 +536,6 @@ screen_browser_paint_callback(WINDOW *w, unsigned i,
        highlight = false;
 #endif
 
-       if (highlight)
-               colors_use(w, COLOR_LIST_BOLD);
-       else
-               colors_use(w, COLOR_LIST);
-
        switch (mpd_entity_get_type(entity)) {
        case MPD_ENTITY_TYPE_DIRECTORY:
                directory = mpd_entity_get_directory(entity);