]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_dft_fgbg.c
ncurses 6.2 - patch 20210418
[ncurses.git] / ncurses / base / lib_dft_fgbg.c
index d5fd1a03a8d63de118ecd7f381b091ebaff8d387..4dd43bb1bbd0e298bc42661a192dd09f4e8aa51e 100644 (file)
@@ -1,5 +1,6 @@
 /****************************************************************************
 /****************************************************************************
- * Copyright (c) 1998-2014,2017 Free Software Foundation, Inc.              *
+ * Copyright 2020,2021 Thomas E. Dickey                                     *
+ * Copyright 1998-2014,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            *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -37,7 +38,7 @@
 #define CUR SP_TERMTYPE
 #endif
 
 #define CUR SP_TERMTYPE
 #endif
 
-MODULE_ID("$Id: lib_dft_fgbg.c,v 1.29 2017/03/25 21:00:49 tom Exp $")
+MODULE_ID("$Id: lib_dft_fgbg.c,v 1.31 2021/04/03 22:27:18 tom Exp $")
 
 /*
  * Modify the behavior of color-pair 0 so that the library doesn't assume that
 
 /*
  * Modify the behavior of color-pair 0 so that the library doesn't assume that
@@ -82,7 +83,9 @@ NCURSES_SP_NAME(assume_default_colors) (NCURSES_SP_DCLx int fg, int bg)
                bool save = SP_PARM->_default_color;
                SP_PARM->_assumed_color = TRUE;
                SP_PARM->_default_color = TRUE;
                bool save = SP_PARM->_default_color;
                SP_PARM->_assumed_color = TRUE;
                SP_PARM->_default_color = TRUE;
-               init_pair(0, (short) fg, (short) bg);
+               NCURSES_SP_NAME(init_pair) (NCURSES_SP_ARGx 0,
+                                           (short)fg,
+                                           (short)bg);
                SP_PARM->_default_color = save;
            }
            code = OK;
                SP_PARM->_default_color = save;
            }
            code = OK;