~ubuntu-branches/debian/sid/ncurses/sid-200908151543

« back to all changes in this revision

Viewing changes to ncurses/base/lib_winch.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-24 15:13:01 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090524151301-uixgxq2zonfov2nr
Tags: 5.7+20090523-1
MergingĀ upstreamĀ versionĀ 5.7+20090523.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
#include <curses.priv.h>
41
41
 
42
 
MODULE_ID("$Id: lib_winch.c,v 1.5 2001/06/02 23:42:08 skimo Exp $")
 
42
MODULE_ID("$Id: lib_winch.c,v 1.6 2008/11/16 00:19:59 juergen Exp $")
43
43
 
44
44
NCURSES_EXPORT(chtype)
45
45
winch(WINDOW *win)
46
46
{
47
47
    T((T_CALLED("winch(%p)"), win));
48
48
    if (win != 0) {
49
 
        returnChar(CharOf(win->_line[win->_cury].text[win->_curx]) |
50
 
                   AttrOf(win->_line[win->_cury].text[win->_curx]));
 
49
        returnChtype(CharOf(win->_line[win->_cury].text[win->_curx]) |
 
50
                     AttrOf(win->_line[win->_cury].text[win->_curx]));
51
51
    } else {
52
 
        returnChar(0);
 
52
        returnChtype(0);
53
53
    }
54
54
}