]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_clrbot.c
ncurses 5.6
[ncurses.git] / ncurses / base / lib_clrbot.c
index d1e243f37ffd6de5b855cf31e00fb76f410019cf..df196e815f82a0c1125195150476c3c54c76abb2 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998,1999,2000 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            *
@@ -40,9 +40,9 @@
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: lib_clrbot.c,v 1.15 2000/04/29 21:15:26 tom Exp $")
+MODULE_ID("$Id: lib_clrbot.c,v 1.20 2006/10/14 20:43:31 tom Exp $")
 
-int
+NCURSES_EXPORT(int)
 wclrtobot(WINDOW *win)
 {
     int code = ERR;
@@ -52,15 +52,15 @@ wclrtobot(WINDOW *win)
     if (win) {
        NCURSES_SIZE_T y;
        NCURSES_SIZE_T startx = win->_curx;
-       chtype blank = _nc_background(win);
+       NCURSES_CH_T blank = win->_nc_bkgd;
 
-       T(("clearing from y = %d to y = %d with maxx =  %d",
-               win->_cury, win->_maxy, win->_maxx));
+       T(("clearing from y = %ld to y = %ld with maxx =  %ld",
+          (long) win->_cury, (long) win->_maxy, (long) win->_maxx));
 
        for (y = win->_cury; y <= win->_maxy; y++) {
            struct ldat *line = &(win->_line[y]);
-           chtype *ptr = &(line->text[startx]);
-           chtype *end = &(line->text[win->_maxx]);
+           NCURSES_CH_T *ptr = &(line->text[startx]);
+           NCURSES_CH_T *end = &(line->text[win->_maxx]);
 
            CHANGED_TO_EOL(line, startx, win->_maxx);