Ejemplo n.º 1
0
static bool covered( SAREA area, UI_WINDOW *wptr )
/************************************************/
{
    int             i;
    bool            flag;
    SAREA           areas[ 5 ];

    dividearea( area, wptr->area, areas );
    flag = ( areas[ 0 ].height > 0 );
    if( wptr->prev != NULL ) {
        for( i = 1; i < 5; ++i ) {
            if( areas[ i ].height > 0 ) {
                flag |= covered( areas[ i ], wptr->prev );
            }
        }
    }
    return( flag );
}
Ejemplo n.º 2
0
void intern dirtynext( SAREA area, UI_WINDOW *wptr )
/**************************************************/
{
    register    int                     i;
    auto        SAREA                   areas[ 5 ];

    dividearea( area, wptr->area, areas );
    if( areas[ 0 ].height > 0 ) {
        dirtyarea( wptr, areas[ 0 ] );
    }
    if( wptr->next != NULL ) {
        for( i = 1 ; i < 5 ; ++i ) {
            if( areas[ i ].height > 0 ) {
                dirtynext( areas[ i ], wptr->next );
            }
        }
    }
}