$OpenBSD: patch-src_colors_c,v 1.3 2014/09/02 08:44:16 dcoppa Exp $
"Fix" screen corruption in ncmpc. Colors and attributes can not be mixed.
Colors are in the low 8 bit, mask them in the appropriate places. 
--- src/colors.c.orig	Tue Sep  2 10:38:51 2014
+++ src/colors.c	Tue Sep  2 10:39:26 2014
@@ -85,7 +85,7 @@ colors_update_pair(enum color id)
 {
 	assert(id > 0 && id < COLOR_END);
 
-	int fg = colors[id].color;
+	int fg = colors[id].color & 0xff;
 	int bg = colors[COLOR_BACKGROUND].color;
 
 	/* If color == COLOR_NONE (negative),
@@ -270,7 +270,7 @@ colors_use(WINDOW *w, enum color id)
 	if (options.enable_colors) {
 		/* color mode */
 		if ((int)attrs != entry->color || (short)id != pair)
-			wattr_set(w, entry->color, id, NULL);
+			wattr_set(w, entry->color & ~0xff, id, NULL);
 	} else {
 #endif
 		/* mono mode */
