/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1997 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
* University Copyright- Copyright (c) 1982, 1986, 1988
* The Regents of the University of California
* All Rights Reserved
*
* University Acknowledgment- Portions of this document are derived from
* software developed by the University of California, Berkeley, and its
* contributors.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*LINTLIBRARY*/
#include <stdlib.h>
#include "curses_inc.h"
/*
* Pad refresh. These routines are provided for upward compatibility
* with the 'pad' structure of Sys V.2. Since windows now can be of
* arbitrary size and derived windows can be moved within their
* parent windows effortlessly, a separate notion of 'pad' as
* a larger-than-screen window is no longer necessary.
*
* pminy, pminx: the area (pminy, pminx, maxy, maxx) of pad is refreshed
* sminy, sminx, smaxy, smaxx: the screen area to be affected.
*/
int
{
}
int
{
/*
* If pad->_padwin doesn't exist(meaning that this is
* the first call to p*refresh) create it as a derived window
*/
0, 0)) == NULL) {
goto bad;
}
/* else pad->_padwin->_use_idl = TRUE; */
/*
* The following makes parent window to run in fast mode
* by creating an illusion that it has no derived windows
*/
}
bad:
return (ERR);
return (OK);
}
int
{
/* make sure the area requested to be updated is on the pad */
return (ERR);
/* determine the area of the pad to be updated */
if (pminy < 0)
pminy = 0;
if (pminx < 0)
pminx = 0;
/* determine the screen area affected */
if (sminy < 0)
sminy = 0;
if (sminx < 0)
sminx = 0;
/*
* Modify the area of the pad to be updated taking into
* consideration screen parameters.
*/
prows = y;
pcols = y;
/*
* If padwin refers to the same derwin, return. Otherwise
* update the coordinates and malloc'ed areas of the padwin
*/
goto good;
}
/* update the coordinates of the pad */
/* LINTED */
/* LINTED */
/* LINTED */
/* LINTED */
/* update the malloc'ed areas */
good:
return (OK);
}