]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_slkclear.c
ncurses 5.6
[ncurses.git] / ncurses / base / lib_slkclear.c
index 03e6721cbb29c9ee6092edbd3ec334bdf1fcf657..99edcd538ec53baf6806040df3d2cbaf99c7574b 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-2001,2006 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            *
@@ -38,7 +38,7 @@
  */
 #include <curses.priv.h>
 
-MODULE_ID("$Id: lib_slkclear.c,v 1.8 2001/12/19 01:07:01 tom Exp $")
+MODULE_ID("$Id: lib_slkclear.c,v 1.9 2006/05/27 19:21:19 tom Exp $")
 
 NCURSES_EXPORT(int)
 slk_clear(void)
@@ -51,7 +51,7 @@ slk_clear(void)
     /* For simulated SLK's it's looks much more natural to
        inherit those attributes from the standard screen */
     SP->_slk->win->_nc_bkgd = stdscr->_nc_bkgd;
-    SP->_slk->win->_attrs = stdscr->_attrs;
+    WINDOW_ATTRS(SP->_slk->win) = WINDOW_ATTRS(stdscr);
     if (SP->_slk->win == stdscr) {
        returnCode(OK);
     } else {