X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=include%2Fcurses.h.in;h=988f3d333125dd664ad6a147a0a52c3127eaf06e;hp=e053797d031ae009e18625a24e264b903cff096f;hb=dc690a36a0e53e2c2ecd99c971cd749f78275fdc;hpb=f344f8539c1543f8cd65a5bb142dbaf23b9421d2 diff --git a/include/curses.h.in b/include/curses.h.in index e053797d..988f3d33 100644 --- a/include/curses.h.in +++ b/include/curses.h.in @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2015,2016 Free Software Foundation, Inc. * + * Copyright (c) 1998-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -32,7 +32,7 @@ * and: Thomas E. Dickey 1996-on * ****************************************************************************/ -/* $Id: curses.h.in,v 1.244 2016/12/10 23:56:23 tom Exp $ */ +/* $Id: curses.h.in,v 1.245 2017/01/21 23:06:27 tom Exp $ */ #ifndef __NCURSES_H #define __NCURSES_H @@ -1203,7 +1203,7 @@ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(use_legacy_coding) (SCREEN*, int); /* /* * These apply to the first 256 color pairs. */ -#define COLOR_PAIR(n) NCURSES_BITS((n), 0) +#define COLOR_PAIR(n) (NCURSES_BITS((n), 0) & A_COLOR) #define PAIR_NUMBER(a) (NCURSES_CAST(int,((NCURSES_CAST(unsigned long,(a)) & A_COLOR) >> NCURSES_ATTR_SHIFT))) /*