~ubuntu-branches/ubuntu/natty/ncurses/natty

« back to all changes in this revision

Viewing changes to ncurses/base/lib_newwin.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-17 09:00:42 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517090042-86fgxrr6j5jzagot
Tags: 5.6-0ubuntu1
* New upstream version.
  - Remove patches applied upstream: ncurses.upstream, signed-chars.
  - Update patches: debian-backspace.
* Build-depend on g++-multilib instead of lib{32,64}c*-dev-*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************************
2
 
 * Copyright (c) 1998-2004,2005 Free Software Foundation, Inc.              *
 
2
 * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
3
3
 *                                                                          *
4
4
 * Permission is hereby granted, free of charge, to any person obtaining a  *
5
5
 * copy of this software and associated documentation files (the            *
41
41
 
42
42
#include <curses.priv.h>
43
43
 
44
 
MODULE_ID("$Id: lib_newwin.c,v 1.36 2005/04/09 15:23:04 tom Exp $")
 
44
MODULE_ID("$Id: lib_newwin.c,v 1.38 2006/10/14 20:31:19 tom Exp $")
45
45
 
46
46
static WINDOW *
47
47
remove_window_from_screen(WINDOW *win)
173
173
 
174
174
    win->_pary = begy;
175
175
    win->_parx = begx;
176
 
    win->_attrs = orig->_attrs;
 
176
    WINDOW_ATTRS(win) = WINDOW_ATTRS(orig);
177
177
    win->_nc_bkgd = orig->_nc_bkgd;
178
178
 
179
179
    for (i = 0; i < num_lines; i++)
188
188
subwin(WINDOW *w, int l, int c, int y, int x)
189
189
{
190
190
    T((T_CALLED("subwin(%p, %d, %d, %d, %d)"), w, l, c, y, x));
191
 
    T(("parent has begy = %d, begx = %d", w->_begy, w->_begx));
 
191
    T(("parent has begy = %ld, begx = %ld", (long) w->_begy, (long) w->_begx));
192
192
 
193
193
    returnWin(derwin(w, l, c, y - w->_begy, x - w->_begx));
194
194
}
235
235
    win->_yoffset = SP->_topstolen;
236
236
 
237
237
    win->_flags = flags;
238
 
    win->_attrs = A_NORMAL;
 
238
    WINDOW_ATTRS(win) = A_NORMAL;
239
239
    SetChar(win->_nc_bkgd, BLANK_TEXT, BLANK_ATTR);
240
240
 
241
241
    win->_clear = is_pad ? FALSE : (num_lines == screen_lines