Go directly to PDC_pair_content().

This commit is contained in:
William McBrine
2007-07-05 20:57:55 +00:00
parent f7324dfb4e
commit c6d22033a7

View File

@@ -13,7 +13,7 @@
#include <curspriv.h>
RCSID("$Id: color.c,v 1.79 2007/07/03 00:11:45 wmcbrine Exp $")
RCSID("$Id: color.c,v 1.80 2007/07/05 20:57:55 wmcbrine Exp $")
/*man-start**************************************************************
@@ -165,7 +165,7 @@ int init_pair(short pair, short fg, short bg)
{
short oldfg, oldbg;
pair_content(pair, &oldfg, &oldbg);
PDC_pair_content(pair, &oldfg, &oldbg);
if (oldfg != fg || oldbg != bg)
curscr->_clear = TRUE;
@@ -254,7 +254,7 @@ int assume_default_colors(int f, int b)
_normalize(&fg, &bg);
pair_content(0, &oldfg, &oldbg);
PDC_pair_content(0, &oldfg, &oldbg);
if (oldfg != fg || oldbg != bg)
curscr->_clear = TRUE;