home *** CD-ROM | disk | FTP | other *** search
- *** libcurses42/addch.c Thu Nov 17 11:03:10 1983
- --- libcurses/addch.c Wed Jul 24 13:30:58 1985
- ***************
- *** 19,22
- # endif
- ! if (y >= win->_maxy || x >= win->_maxx || y < 0 || x < 0)
- ! return ERR;
- switch (c) {
-
- --- 19,25 -----
- # endif
- ! #ifdef slowway
- ! /* These tests 'cannot happen'. What about win==NULL?! */
- ! if (y < 0 || y >= win->_maxy || x < 0 || x >= win->_maxx)
- ! return (ERR);
- ! #endif
- switch (c) {
- ***************
- *** 38,40
- c |= _STANDOUT;
- ! set_ch(win, y, x, c, NULL);
- for (wp = win->_nextp; wp != win; wp = wp->_nextp)
-
- --- 41,55 -----
- c |= _STANDOUT;
- ! #ifdef slowway
- ! set_ch(win, y, x, c, (WINDOW *)NULL);
- ! #else
- ! /* rti-sel!trt: efficiency hack */
- ! if (win->_y[y][x] != c) {
- ! if (win->_firstch[y] == _NOCHANGE)
- ! win->_firstch[y] = win->_lastch[y] = x;
- ! else if (x > win->_lastch[y])
- ! win->_lastch[y] = x;
- ! else if (x < win->_firstch[y])
- ! win->_firstch[y] = x;
- ! }
- ! #endif
- for (wp = win->_nextp; wp != win; wp = wp->_nextp)
-